0

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?

http://jsfiddle.net/zkJXY/

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
benhowdle89
  • 36,900
  • 69
  • 202
  • 331

3 Answers3

1

the problem is your selector

change $('.input') into $('input') and it works

Manuel van Rijn
  • 10,170
  • 1
  • 29
  • 52
0

Your selector should be $(':input')

DEMO

defau1t
  • 10,593
  • 2
  • 35
  • 47
0

maybe removing readonly on mouseenter, adding it again on mouseleave. Example: http://jsfiddle.net/8X86r/2/

Teun Pronk
  • 1,367
  • 12
  • 24