Err Posted April 20, 2010 Share Posted April 20, 2010 I'm highlighting any rows where a user checks the checkbox. It works fine on all browsers but IE. I check the checkbox and the row doesn't highlight until I click on something else. Is there any way around this?In my CSS, I am using :hover for these same rows. Think that might be part of my IE's problem?I just tried it without the :hover and it still does the same thing. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 20, 2010 Share Posted April 20, 2010 Which event are you using to handle the change? Link to comment Share on other sites More sharing options...
Err Posted April 20, 2010 Author Share Posted April 20, 2010 row.style.backgroundColor = 'yellow'; Link to comment Share on other sites More sharing options...
justsomeguy Posted April 20, 2010 Share Posted April 20, 2010 I mean the event, are you using the change event or something like that? What runs when a checkbox gets clicked? Link to comment Share on other sites More sharing options...
Err Posted April 20, 2010 Author Share Posted April 20, 2010 Oh right. Sorry. I'm using onchange. <input value="" type="checkbox" onchange="togHighlight(this.value,1);" /> Link to comment Share on other sites More sharing options...
justsomeguy Posted April 20, 2010 Share Posted April 20, 2010 IE doesn't fire the change event until the element loses focus, you could probably use click instead of change. Link to comment Share on other sites More sharing options...
Err Posted April 20, 2010 Author Share Posted April 20, 2010 That's it. I guess I'll stick with onclick.Thanks for you help justsomeguy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.