Is it possible to put quotes inside quotes?
If so how?
Here is my code:
<?php
echo '<span onclick="$(this).addClass('selected');"> </span>';
?>
See Question&Answers more detail:osIs it possible to put quotes inside quotes?
If so how?
Here is my code:
<?php
echo '<span onclick="$(this).addClass('selected');"> </span>';
?>
See Question&Answers more detail:osAccording to php.net
To specify a literal single quote, escape it with a backslash ().
It means you could have:
<?php
echo '<span onclick="$(this).addClass('selected');"> </span>';
?>