Javascript replace help needed...

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Snoopy

Established Member
Impact
0
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();
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
After some googling I got the result that I needed - see ya!
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back