O people, I have found what I think is a simple question, but for some reason, I can not find it Is working right.
Expected behavior: I type the characters in a field, and, through the function, those characters are translated into the value of the name
HTML attribute.
Actual Behavior: reflected in the firebug, the value changes or does not get updated.
Code:
$ ('input'). Live ('keyup', function () {var name_value = $ (this) .val (). ToLowerCase (); $ (this) .attr ('name', name_value);});
Just note one side: I am using .live ()
because the element can be cloned, and able to take those clones too The properties of the .keyup
should be.
Any thoughts?
I have to agree with comments that are a particularly strange request, but being said ... which you have already worked on, are monitoring tools that are not updating, not dom, it's working properly. / P>
The easiest way to test this is by & lt; Form & gt;
See more about what you get, debug and see it, do this:
$ ("form"). Submit (function () {warning ($ (this). Certificate ()); refund;});
Works in Chrome, Firefox and IE8.
Comments
Post a Comment