I'm trying to get the value of the li the client clicked on and 'transform' that into a php variable.
<ul class="dropdown-menu" role="menu">
<li id="banAppeal"><a href="#">Ban Appeal</a></li>
<li id="banAppeales"><a href="#">Spanish Ban Appeal</a></li>
</ul>
If they click on "Ban Appeal", a form appears:
$(document).ready(function(){
$("#banAppeal").click(function(){
$("table#unban").show();
$("table#default").hide();
}); });
How can I get the value of whatever they click and put that in a PHP Variable? I know .val() does not work.