Firebug shows me the following error: \[code\]too much recursion\[/code\] , I tried a lot to determine what causes me this error, but in vain This is my JavaScript code: \[code\]$(".scan").click(function(e){ e.preventDefault(); var docName = $("#nomPJ").val(); $(this).attr("nomDoc",docName);});\[/code\]Another on a separated js file: \[code\]$(".scan").live("click",function(event){ alert("frame"); var e = event.target; nomDoc = $(e).attr("nomDoc"); idDoc = $(e).attr("idDoc"); alert("id"+idDoc); $("#title").text(nomDoc); $("#modal-body").empty().append('<iframe frameBorder="0" height="90%" width="98%" style="margin-left: 5px" src="http://stackoverflow.com/GRH/Scan.jsp?nomDoc=' + nomDoc + '&idDoc='+idDoc+'"></iframe>'); $("#myModal").modal({ dynamic: true });});\[/code\]The html element:\[code\]<a href="" class="scan" idDoc="1" nomDoc="" target="_blanck">num