Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Javascript replace help needed...

SpaceshipSpaceship
NamecheapNamecheap
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
•••
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
•••
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back