Selector not working in IE but does in FF
Selector not working in IE but does in FF
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....
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....
This discussion has been closed.
Replies
Allan
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.....