Selector not working in IE but does in FF

Selector not working in IE but does in FF

Starz26Starz26 Posts: 38Questions: 1Answers: 0
edited November 2011 in General
I am trying to get the 'style' attribute of a cel in the clicked row of Datatables.

In firefox it works fine but in IE it always returns undefined....

[code]
j$('[id$=dataList] tbody td img').click(function(){

var t = j$('td:eq(1)', theRow).attr('style');
alert(t);

});
[/code]

Can anyone help here? I also tried the prop() to no avail....

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    What is "theRow"? Sounds like a general jQuery question - I'd suggest asking in the jQuery forum or perhaps StackOverflow or similar.

    Allan
  • Starz26Starz26 Posts: 38Questions: 1Answers: 0
    theRow was the var with the assignment of this.parentnode.parentnode

    I ended up putting the var in a p tag and used the selector to reference that. For some reason some browser were not rendering the style tag in the DOM and some where. May have been because I was putting something non standard in there.....
This discussion has been closed.