I have a div which contains some text for the database:
<div id="summary">Here is summary of movie</div>
And list of links:
<a href="?id=1" class="movie">Name of movie</a>
<a href="?id=2" class="movie">Name of movie</a>
..
The process should be something like this:
- Click on the link
- Ajax using the url of the link to pass data via GET to php file / same page
- PHP returns string
- The div is changed to this string
And add
onclick
event in your lists