javascript - How to get a click event of an input element that moves when active? -


My website has input buttons that run 1px when they are "active" and, I do not catch the click event If I click on someone's border, because it runs a little bit.

Here's an example. You can not get click event.

HTML:

  & lt; Input type = "button" value = "click me!" & Gt;   

one ???? CSS: Input {width: 100px; Height: 50px; } Input: active {status: relative; Top: 50px; Left: 100px; }

one ???? jquery:

  $ (function () {$ ('input'). ('Click', function () {warning ('you caught me! ');});});   

one ???? Demo:

You



Comments