Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir,

"html file: Could not set the selected property. Unspecified error"

MY Code is,

SQL
function setSelectedIndex(s, v) {

           for (var i = 0; i < s.options.length; i++) {
               if (s.options[i].text == v) {
                   s.options[i].selected = true;
                   return;
               }
           }


But IE browswer can't supported. because error display. (other browsers are working well).
Note:
name : textbox
Address : textbox
City : Dropdown list
Area : Dropdown list ------------------>Error is here(editing time)

this error arise when I am editing customer details.
Posted
Updated 13-Apr-12 0:43am
v2

1 solution

It's not clear what you pass in S and V. Check this sample and try to figure out what you are doing wrong.
http://www.mredkj.com/tutorials/tutorial003.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900