Hi All,
I am struck with some issue in jquery. i want to set a php variable inside jquery. Following is the jquery function i am using
$("#edit").on("click", function() {
var yearss = "2002"; // i will get this value dynimaically
<? $years = ?> yearss; // i don't know how to get this in php
// for some reasons i cant use ajax or json, because i am not sending data to another page, i want that php variable inside this jquery function only
});
Can anyone help me or let me know it can't be achieved this way.
Bookmarks