So I'm going to be printing a list of items from a database, and with each item there will be a link printed with it. Essentially, I want something like <a href="link from database" id="link_1">Load</a>, except I want the link to use ajax. So in my scripts.js file I'll have something like $('#link_1').click( function() { $('#link_1').load ("link from database")}); I want to get the link from database from the PHP file that contains the initial link. How would I do this?
- [jQuery] Passing a PHP variable to jQuery Mike C
- [jQuery] Re: Passing a PHP variable to jQuery GravyFace
- [jQuery] Re: Passing a PHP variable to jQuery Isaac Gonzalez