www.webdeveloper.com
Results 1 to 2 of 2

Thread: select.remove(i) doesn't work properly

  1. #1
    Join Date
    Dec 2009
    Posts
    2

    select.remove(i) doesn't work properly

    hello, the remove(i) doesn't remove the option[i] but works unexpectedly and removes the first 4 options.
    any ideas on how to delete the selected index only?
    10x.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <select name="select1" onchange="this.options[this.selectedIndex]=null;">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles