Link to home
Start Free TrialLog in
Avatar of ac_davis2002
ac_davis2002Flag for United Kingdom of Great Britain and Northern Ireland

asked on

textbox value to an alert on click

hi

I want  a value from a html text box to appear in an alert when clicking a button. I think I need to do this using javascript. does any one have an example I can use please?

thanks
SOLUTION
Avatar of a_b
a_b

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Silemone, don't you have to place () with the function in the onclick attribute? Like this?:

<input type="button" onclick="theClick()" />