Hi,

I am trying to get the correct div from a form

I did (I intentionally left the brackets open so it displays here)
span id="doedit_$comment[commentid]"> a onclick= "return
getCommentID($comment[commentid])

and for the jQuery

$(document).ready(function() {

function getCommentID(cid)
{

 $("#doedit_" + cid).click(function() {

  $("div#newcomment").slideUp("slow");
  $("div#editcomment_" + cid).slideDown("slow");

}
   });


But nothing is happening.

Please what is the proper syntax?

Thank you
-- 
View this message in context: 
http://www.nabble.com/How-to-handle-dynamic-clicks--tp25644199s27240p25644199.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to