Tool to convert JQuery code to run within PHP script

There will be a requirement where JQuery code is to be written within the PHP script by using echo command. This is required when we may have to keep some PHP variables within JQuery script. Example when you collect date from database and wants that to be highlighted as defaultDate for the date picker. Here default date will be available as PHP variable and same is to be embedded inside JQuery code.

In such cases we have to take care of following points .

Use single quote in place of double quotes or escape all double quotes
Escape all $ symbols used inside JQuery as this will be treated as variable inside PHP

Here is a tool to convert your JQuery script to compatible PHP code.

Add PHP echo command Add PHP start and end <?Php ..... ?>

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here .







    Most Popular JQuery Scripts

    1

    Two dependant list boxes

    2

    Calendar with Date Selection

    3

    Data change by Slider

    4

    Show & Hide element


    JQuery Video Tutorials




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer