[jQuery] Prototype --> jQuery transfer issue
This is a PHP subroutine with an onclick referring to $row['id'] using
prototype:
function get_topic_listing($row)
<td class="subject"><a href="#" class="sel_subject"
onclick="Element.toggle(\''.$row['id'].'\');
document.getElementById(\''."replies_".$row['id'].'\').innerHTML =
\'\';return false;">'.$row['subject'].'</a>
</td>
<div class="topic_body_head" id="'.$row['id'].'"
style="display:none">'.$row['message'].'<div>
:
:
:
:
and here is the jquery command I don't know how to translate the "
Element.toggle(\''.$row['id'].'\'); "
jQuery(document).ready(function(){
jQuery(".sel_subject" click(function(){
jQuery("# ???? replies_ $row['id'] ???? ").toggle("slow");
});
Does anybody have an idea? It'd make my day!!