Jquary deletes the tr row based on the element attribute of the button in TD (delete the row to be deleted)

Source: Internet
Author: User


Delete a row without a blue button.

<HTML>

<Tr>
<TD> Liangshan Yi Autonomous Prefecture branch </TD>
<TD> Management Network </TD>
<TD> offline ATM </TD>
<TD class = "text-center"> MSTP </TD>
<TD> Xichang xike station space sunshine </TD>
<TD class = "text-center"> under construction </TD>
<TD class = "text-center">
<A Title = "details" class = "BTN medium UI-state-default small" href = "http: // 118.112.186.175: 2222/super/index. php? C = my_network & amp; M = detail_page & amp; line_id = 912 ">
<SPAN class = "button-content"> <I class = "glyph-icon-search-plus float-left"> </I> details & nbsp; </span>
</A>
<SPAN class = "BTN medium UI-state-Default"> laying the line </span> & nbsp; <a class = "BTN medium BG-yellow" href = "http: // 118.112.186.175: 2222/super/index. PHP? C = my_network & amp; M = revocation_operate & amp; line_id = 912 "> <SPAN class =" button-content "> terminate an operation </span> </a>
</TD>
</Tr>

<Tr>
<TD> Yibin branch </TD>
<TD> Management Network </TD>
<TD> offline ATM </TD>
<TD class = "text-center"> MSTP </TD>
<TD> gujie, nanxi district, Yibin City, Sichuan Province </TD>
<TD class = "text-center"> under construction </TD>
<TD class = "text-center">
<A Title = "details" class = "BTN medium UI-state-default small" href = "http: // localhost/super/index. php? C = my_network & amp; M = detail_page & amp; line_id = 896 ">
<SPAN class = "button-content"> <I class = "glyph-icon-search-plus float-left"> </I> details & nbsp; </span>
</A>
<A class = "BTN medium Primary-BG" href = "http: // localhost/super/index. php? C = my_network & amp; M = line_verify_next & amp; line_id = 896 "> <SPAN class =" button-content "> network verification completed </span> </a> & nbsp; <a class = "BTN medium BG-yellow" href = "http: // localhost/super/index. PHP? C = my_network & amp; M = revocation_operate & amp; line_id = 896 "> <SPAN class =" button-content "> terminate an operation </span> </a>
</TD>
</Tr>

Jquary

<SCRIPT>
$ (Document). Ready (function (){
$ (". Table TR"). Each (function (){
If (! $ ("A", this). hasclass ("primary-BG ")){
$ (This). Hide ();
}
});
});
</SCRIPT>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.