Select Box Validate Script

Select Box is a one type of graphical user input type.which allows to can select one value for a user.In this Select Box validate Script is used to validate select or drop down box.

Demo :



Country :

Example :

Just click in validate button the java script alert will say 'Please Select a Country' then Select a country at drop box if you like.

Code :

If you need to validate select box following code helpful to you.you want to your web site copy and use it.


<?php
function validate()
{
  if(document.frm_select.option_list.value=='')
  {
    alert('Please Select Country');
    document.frm_select.option_list.focus();
    return false;
  }
}
?>

In the above validate() function have using to validate drop down list . The focus() function is pointed to which you are selected country.

Free Download Script:

If you need to Select Box Validate Script click and download from following zip file.

Download -->




Content