Results 1 to 3 of 3
Thread: star rating - not sticky in IE
Aug 1, 2008, 12:07 #1
star rating - not sticky in IE
I have some star rating code that is acting differently in IE (6 and 7) than Firefox (2.0 and 3.0).
The problem is the selected ratings for each row must be sticky and stay selected to the new value. It works fine in Firefox but IE clears the previous selected values.
What do I need to do to get my code to work in IE?
Aug 1, 2008, 13:32 #2
- Join Date
- Jul 2007
- 0 Post(s)
- 0 Thread(s)
You've made an assumption about childNodes but browsers treat blank text in different ways. Some make them into nodes, others don't.
var current_rating = document.getElementById(f_id).childNodes;
var current_rating = document.getElementById(f_id).getElementsByTagName("li");
Aug 1, 2008, 14:47 #3
Thank you...that worked wonderfully.