| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | 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.... 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(); |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |