Jquery removes the content of the tr element with the ID sNews

  • 2020-03-30 02:36:27
  • OfStack

 
//Delete the contents of the tr element whose ID is sNews and whose index is JQID
$("#sNews table tr").eq(JQID).remove(); 
//This article takes table as an example. #sNews is the ID of div (container). JQID is the index of tr, and the index starts at 0

Related articles: