Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 20th, 2007, 04:08 AM
Registered User
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help: character and multiple textboxes


I use the following string to change a form textbox - how will I alter the code to change multiple textboxes onclick?

Please help me....




var thisString;
function startText() {
thisString = document.text.body.value;
thisString = thisString.replace(/Ä/g, "&Auml;");
thisString = thisString.replace(/ä/g, "&auml;");
thisString = thisString.replace(/Å/g, "&Aring;");
thisString = thisString.replace(/Ã¥/g, "&aring;");
thisString = thisString.replace(/Ö/g, "&Ouml;");
thisString = thisString.replace(/ö/g, "&ouml;");



and in the form onclick="startText();

Similar Threads
Thread Thread Starter Forum Replies Last Post
character entity into numeric character entity srkumar XSLT 1 November 22nd, 2007 04:53 AM
textboxes or list boxes with multiple fore color svharishtech Pro VB 6 5 April 20th, 2007 05:04 PM
Two TextBoxes hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Basics 5 April 1st, 2006 06:32 AM
Validate Multiple Textboxes ~Bean~ ASP.NET 1.0 and 1.1 Professional 2 October 11th, 2005 03:03 PM
Using loop to change text of multiple textboxes snowy0 VB.NET 6 July 29th, 2004 08:54 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.