Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

How to Clear Select Box Options Fast using Javascript?

2/17/2012

1 Comment

 
document.getElementById(id).options.length = 0;
                                (or)
document.forms[FormName].elements[SelectName].options.length = 0;

FormName :- Name of the Form
SelectName:- Name of the Select Box

1 Comment
Matty link
7/14/2012 03:55:57 am

Nice article dude

Reply



Leave a Reply.

    Archives

    April 2012
    March 2012
    February 2012

    Categor

    All
    Ajax
    Api
    Cross Site Scripting
    Css
    Curl
    Design Patterns
    Drupal
    Exception Handling
    Htaccess
    Html
    Javascript
    Jquery
    Json
    Linux
    Mysql
    Oops
    Php
    Regular Expressions
    Web 2.0
    Webservices
    Wordpress
    Xhtml

    RSS Feed

Powered by Create your own unique website with customizable templates.