Validate fields (List-Dropdown menu)

Javascript coding ..

Moderators: macek, egami, gesf

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

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
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

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
WoozyDuck
New php-forum User
New php-forum User
Posts: 191
Joined: Wed May 05, 2004 10:14 am

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

cheers


Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest