how to traverse the element in
html:
<tr id="head-58">
<td style="width:150px;"><input type="button" name="delete"
class="delete_person" value="58"/>name</td>
<td><input type="checkbox" name="first_aid" id="id_first_aid"
/>FirstAid</td>
<td><input type="checkbox" name="sick_bay" id="id_sick_bay" /Sick
bay</td>
<td><input type="checkbox" name="ambulance" id="id_ambulance"
/>Ambulance</td>
</tr><button type="button" style="margin: 1px 35px 5px;"
name="delete" value="58" class="delete_icon
button_style">Delete</button>
Here onclicking the delete_person class,i want to show the hidden button
with class delete_icon.Since class delete_icon can have more than one,i
need to show the hidden button form clicked element.I tried with
$this.closest('tr').find(".delete_icon").toggle(); which is not working.
No comments:
Post a Comment