Hello all. I need to know if I can use ul onclick in external.js to make an Ajax call to file.php that executes mysql_query select * from 'id' of the li element clicked.
UL EG.
HTML Code:
<ul id="jewelry">
<li id="silver>Silver Jewelry</li>
<li id="gold">Gold Jewelry</li>
<li id="silverwithstones">Silver with stones</li>
</ul>
file.php
Code:
mysql_query=SELECT*FROM '.id.' etc.
Thanks in advance for any thoughts