Help - Search - Members - Calendar
Full Version: Help With Textbox Value Identity
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
NintendoZACHERY
Hey guys, I was just making a script, but I don't know how I would continue it.
It's like this, I have a Textbox, and a button. Now, When I press the button, I want it to read two values. Like, lets say in the textbox I write "Test" then press [Enter] Then type "Value."

When I now press the button, I want it to see "Test" as a value, and "Value" as a value.

OR

Have it find the values through commas, like I type "Test, Value" It will find "Test" a value, and "Value" a value.

Can anoyone help with my problem?
Christian J
What kind of scripting language, client- or serverside?

With clientside javascript you can split a string into an array (using e.g. spaces or commas as delimiters) with the split() method: http://www.quirksmode.org/js/strings.html#split
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.