Solved

remove style attribute jquery

Posted on 2014-03-11
2
866 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

691 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