Watch Our YouTube Channel
It is currently Sun Dec 17, 2017 11:24 pm
 

All times are UTC



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Sep 18, 2013 10:56 am 
Offline

Joined: Tue Jan 29, 2013 10:24 am
Posts: 145
Location: India
For example,
If we need to validate the Drop Down according to the value of Radio button, use the below code,
we can use the value of Radio button value is Yes.

Code:
if (myform.radiobutton_id.checked) //radiobutton_id, id of Yes in Radio button
   {
      if(myform.dropdown_name.value =="")
      {
         alert("Please select at least one option");
         myform.dropdown_name.focus();
         return false;
      }

_________________
K.Suresh Kumar
Motivational Quotes | Web Development | Software Testing


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron