Usefz89 / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

Star rating break in IE9 with labeled input #128

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. There seems to be a problem with labeled inputs. 

The plugin doesn't work with the following markup in IE9:
<ul>
<li><label for="id_159-rating_0"><input value="1" type="radio" class="star" 
name="159-rating" id="id_159-rating_0" /> </label></li>
<li><label for="id_159-rating_1"><input value="2" type="radio" class="star" 
name="159-rating" id="id_159-rating_1" /> </label></li>
</ul>

But removing the id or label will fix it again.

I am using Django and the radio input gets generated by their RadioWidget. So I 
would think it is valid code. Any idea why IE9 chocking on this one?

What is the expected output? What do you see instead?
When clicking on a star .checked is not being set and the rating goes back to 
zero.

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 4.11 
JQUERY VERSION: 1.9.1

On what browser(s) or operating system?
BROWSER(S): Windows 7, IE 9 (tested on Browserstack)

Please provide a link to where the problem can be observed:
URL: site note live yet

Feel free to provide any additional information below.

Original issue reported on code.google.com by Michael....@gmail.com on 20 Mar 2013 at 8:53

GoogleCodeExporter commented 8 years ago
Hey Michael,
I'm afraid I have bad news and good news....

The bad news is: the plugin only supports inputs side-by-side. 

The good news is: http://jsfiddle.net/spinal007/66BRX/1/

Original comment by diego.a...@gmail.com on 21 Mar 2013 at 1:52

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for the jsfiddle! This fixes it for us.

Still don't quite understand why this is only happening in IE9 though - but I 
don't mind if it stays a mystery to be honest ;)

Cheers,

Michael

Original comment by Michael....@gmail.com on 21 Mar 2013 at 8:48