Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Validate fields (List-Dropdown menu)

Javascript coding ..

Moderators: macek, egami, gesf

Validate fields (List-Dropdown menu)

Postby WoozyDuck » Sun Feb 20, 2005 11:53 am

Hi

I know how to validate or set required for any textfield in Dreamweaver.
but I couldnt find a validate or set required for LIST or DROPDOWN menu
can anybody tell me please how can I do that with JavaScript?
User avatar
WoozyDuck
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed May 05, 2004 10:14 am

Postby ruturajv » Sun Feb 20, 2005 8:10 pm

Code: Select all
<script 1language="javascript">
function validate_select()
{
.... //make validations.. here using DOM
}
</script>
<select name=... onchange="validate_select();">
....
..
</select>
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby WoozyDuck » Wed Feb 23, 2005 1:13 pm

cheers
User avatar
WoozyDuck
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed May 05, 2004 10:14 am


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron