| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Feb 2004
Posts: 71
![]() | Javascript replace help needed... Hi, I use the following string to change a form textbox - how will I alter the code to change multiple textboxes onclick? Please help me.... ????: NamePros.com http://www.namepros.com/programming/296368-javascript-replace-help-needed.html Regards, /P <head> <SCRIPT LANGUAGE="JavaScript"> var thisString; function startText() { thisString = document.text.body.value; thisString = thisString.replace(/Ä/g, "Ä"); thisString = thisString.replace(/ä/g, "ä"); thisString = thisString.replace(/Å/g, "Å"); thisString = thisString.replace(/å/g, "å"); thisString = thisString.replace(/Ö/g, "Ö"); thisString = thisString.replace(/ö/g, "ö"); document.text.body.value=thisString; } </script> </head> and in the form onclick="startText(); |
| |