Solved

remove style attribute jquery

Posted on 2014-03-11
2
839 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 82

Accepted Solution

by:
leakim971 earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn how to dynamically set the form action using jQuery.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now