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; }); 

http://api.jquery.com/remove/


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -