laktek / really-simple-color-picker

Simple Color Picker written in jQuery.
http://laktek.com/2008/10/27/really-simple-color-picker-in-jquery
MIT License
179 stars 65 forks source link

Fix crash when setting input.type= in oldIE #20

Closed ghiculescu closed 11 years ago

ghiculescu commented 11 years ago

Old versions of IE don't allow you to set .type = on an input element. You can't do it by other means (jQuery's attr(), or js setAttribute()) either.

So thee input is now hidden via css (visilibility: hidden; position: absolute;) in cases where it can't have its type changed. I didn't use display:none; as this would prevent the input value from being posted.

laktek commented 11 years ago

Thanks for the fix