PHP - IF div clicked/has class or id return code -


some html

<div class='menu_mcwiki'>      <ul>           <li> <p> blocks list </p></li>           <li> <p> item list </p></li>           <li> <p> potions & food </p></li>           <li> <p> npc trading </p></li>           <li> <p> crafting </p></li>           <li> <p> enchanting </p></li>           <li> <p>legend:</p></li>      </ul> </div> 

i like, if click on <li>, if statement in php file show output.

i thought javascript's .addclass .removeclass add or remove class <li>, , add php file if statement {if has class1} show output, , if doesn't exist: show anything.

can point me in right direction? sorry english.

i like, if click on li, if statement in php file show output.

not doable php. need kind of ajax call webserver script that. jquery might searching, nicely documented.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -