I'm trying to display a modal on the click of an anchor tag. I have dynamically created anchor tags (within a table and divs), on click of which a modal should be displayed...
<a href = "#close" class='forum-title' name = "abc">XYZ</a>
I've given the "#close" randomly (to prevent it from throwing an error..guessing it's(href) not imp in this case...)
I have given a simple function on the click function of the anchor tag :
function openModal() { $('#usermodal').modal('show'); }
Please check my JSFiddle : http://jsfiddle.net/AshleyR098/xaqtawog/623/
Updated JSFiddle : http://jsfiddle.net/AshleyR098/xaqtawog/628/
(Tried giving onclick on the a tag)