Saturday, November 20, 2010

onclick javascript function won't work in Firefox

Programmer Question

I've never really heard of something this simple working in every browser, but firefox, so can anyone shed some light on this?



  reply 


and



jQuery:



    var nameForm;
function quoteMe(commenterName, id, name) {
if (name == "")
nameForm = 'Name: '
else
nameForm = '
'+name+'
'+''
if (jQuery("#replyForm"+id).length == 0) {
jQuery("#"+id).append('

'+nameForm+'
Reply:
');
}
else {
jQuery("#replyForm"+id).remove();
}


}



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails