jquery - Using Attributes End With to delete elements -
i have been trying implement attributeendswith selector delete multiple elements ids ending "_vb ("[id$="_vb"]"). unfortiunately code have below doesnt work. can me correct code please?
<script type='text/javascript'> $(document).ready(function(){ var elem = document.getelementbyid('div[id$="_vb"]'); elem.parentnode.removechild(elem); return false; });
document.getelementbyid
doesn't work that, want jquery
function ($
)
$(document).ready(function(){ $('div[id$="_vb"]').remove(); return false; });
Comments
Post a Comment