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/
UPDATE :
JSFiddle : http://jsfiddle.net/AshleyR098/xaqtawog/628
-Had given wrong ID to the modal div, tried giving onclick on the anchor tag...Still, no go...