javascript - How to clear and replace the contents of an input field ...

Posted by Unknown on Wednesday, December 25, 2013

One way to do it. script: function foo(id, el) { document.getElementById(id).value = el.innerHTML.replace(/test/, 'something'); }. (Obviously you'd want to do ...

more

{ 0 comments... » javascript - How to clear and replace the contents of an input field ... read them below or add one }

Post a Comment

Popular Posts