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

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -