I am looking for a good way to handle a link click of different lines Each line is added at different times and i want only the most recently added line's links to be clickable. they are all under the same div tag
ex:
line 1: "this is a line <link here>" <-- dont want these to be clickable
line 2: "this is a line <link here>" <-- but still viewed
line 3: "this is a line <link here>" <-- most recent line clickable
hopefully this is being explained correctly the lines are added with .before function
So i added
to indicate each line. the link are indicated by a class id called talk_action and each line can contain more than one link. so somehow i need to set up an on click for the .talk_action which is clicked under the last paragraph. when the link is clicked it grabs the link id and passes it to a php file
ex:
<p>would you like to <a class='talk_action' id='shop'>shop</a> or talk about <a class='talk_action' id='quest'>quests</a></p>