Saturday, 31 August 2013

WordPress AJAX - store jquery variable and echo it in php - function.php?

WordPress AJAX - store jquery variable and echo it in php - function.php?

Is it possible to send jQuery variable to function.php, and use it in some
php function? Via AJAX or probably.
Theme related, not using a plugin.
Eg. I have some post CSS classes added on 'client side' via jQuery on click.
Can I use this classes on 'server side' so I can pass them in any page of
my theme?

No comments:

Post a Comment