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 ..... ?>
Visitors Rating
Your Rating




Google+

Post Comment This is for short comments only. Use the forum for more discussions.







Most Popular JQuery Scripts

1

Two dependant list boxes

2

Calendar with Date Selection

3

Data change by Slider

4

Show & Hide element
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us
©2000-2018 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer