?
Solved

remove style attribute jquery

Posted on 2014-03-11
2
Medium Priority
?
924 Views
Last Modified: 2014-03-12
Hi

I have a table that is pulled in dynamically from another website. It is pulled in with javascript.

The table it produces has lots of inline styles with !important and i want all these removed so i can style myself.

I tried to use jquery to remove them but i dont think it works because the html is generated by javascript itself. How can i solve this?

The table is on this page:
http://ekcfc.openwaterdesign.com/

it is under "league table"

Thanks
0
Comment
Question by:coolispaul
2 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39921690
jQuery("#block-block-10 table *").prop("style","")

Open in new window

0
 
LVL 83

Accepted Solution

by:
leakim971 earned 1500 total points
ID: 39921785
Use :
<script type="text/javascript">
jQuery(window).load(function() {
     //jQuery("#block-block-10 table").removeAttr("style border cellspacing cellpadding");
     jQuery("#block-block-10 table").removeAttr("style");
});
</script>

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question