I have an input element with readonly
set to true ("readonly"
). However, when I try to apply a hover effect in jQuery, no results are seen.
Any ideas?
I have an input element with readonly
set to true ("readonly"
). However, when I try to apply a hover effect in jQuery, no results are seen.
Any ideas?
the problem is your selector
change $('.input')
into $('input')
and it works
maybe removing readonly on mouseenter, adding it again on mouseleave. Example: http://jsfiddle.net/8X86r/2/