I am executing a PHP if / else statement.
However, I want the code to do something like this:
<?php if ($condition == true){ echo 'ITS TRUE!'; }else {
Note that the ELSE statement executes a jQuery string that changes the css style of the associated element.
How can I do it?
Does anyone have any suggestions / examples of how I can implement PHP if / else and change css styles using jQuery inside a PHP if / else statement?
Kyle yeo
source share