hyperrjas
hyperrjas

Reputation: 10744

set input value as the user is typing

I have 1 input field.

<input id="post_remote_posted_url" type="text" size="30" name="post[remote_posted_url]">

How can I go filling the value from this field input when I go typing or writing inside this field?

Upvotes: 0

Views: 1671

Answers (1)

mgraph
mgraph

Reputation: 15338

do you mean like that: http://jsfiddle.net/6MurG/

$("#post_remote_posted_url")​.keyup(function(){
       $(this).attr("value",$(this).val());
    })​

Upvotes: 2

Related Questions