First time its work fine for me.That is it open the modal box.But the second time It wont open the Modal box when I add the anchor tag using Jquery append.Why?What I need to change its going to be work?Thanks.
Update:
I am using Thickbox
<input type="text" name="maxprocedure" id="maxprocedure" value="1"/>
<div id="procedurecontainer">
<a title="Google Site" class="thickbox" href="http://www.google.com?width=200&height=200" >Open Here</a>
</div>
<input type="button" id="addprocedure" value="add"/>`
Jquery Code is
$(document).ready(function() {
$('#addprocedure').click(function()
{
//alert($("#maxprocedure").val());
var maxvalue=$("#maxprocedure").val();
for(var i=1;i<=5;i++)
{
var idvalue=parseInt(maxvalue)+i;
$("#procedurecontainer").append('<input type="text" value="" id="procedurecode'+idvalue+'" name="procedurecode'+idvalue+'"></input><a title="Google Site" class="thickbox" href="http://google.com?width=200&height=200">Open Here</a>');
$("#maxprocedure").val(idvalue);
}
});
});