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
more
Home »Unlabelled » javascript - How to clear and replace the contents of an input field ...
Posted by Unknown on Wednesday, December 25, 2013
2014 All Rights Reserved how to.
» how to: javascript - How to clear and replace the contents of an input field ...
{ 0 comments... » javascript - How to clear and replace the contents of an input field ... read them below or add one }
Post a Comment