PDA

Click to See Complete Forum and Search --> : Retreive Text


robin1
Jul 18th, 2005, 08:38 AM
Probobly really easy for most of you but...

How would I retreive whatever was typed into a text box. I have a button and a place for the user to enter text. When the button was pressed I call a function and i want it to compare the users text with other values.

I thought this would do it? (Abbreviation is the name of the textbox).

function def()
{

if (document.all.Abbreviation.value == 'A') {
document.all.Abbreviation.value='It worked';

}

wildcat_2000
Jul 18th, 2005, 08:43 AM
this is javascript.

robin1
Jul 18th, 2005, 08:46 AM
My Bad..

Hack
Jul 18th, 2005, 10:00 AM
Moved from ClassicVB.