dropdownlist in java script
-
how should i do with the dropdownlist in javascript.Like the selected-index , selected value , items.count functions in c#? actually i wanted to use the dropdownlist functions in javascript.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
-
how should i do with the dropdownlist in javascript.Like the selected-index , selected value , items.count functions in c#? actually i wanted to use the dropdownlist functions in javascript.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
Dear Sonia Gupta, Its a ASP .NET forum ..... it is good that you post it in javascript forum of web development forum In javascript...considering your drop down list controls ID is 'dddCountry' ....... objDropDownList = document.getElementById('dddCountry') int selectedIndex=objDropDownList.selectedIndex; var SelectedText = objDropDownList.options[selectedIndex].text; var SelectedValue = objDropDownList.options[selectedIndex].value; ... Hope it helps ... :rolleyes:
Thanks, Arindam D Tewary
-
Dear Sonia Gupta, Its a ASP .NET forum ..... it is good that you post it in javascript forum of web development forum In javascript...considering your drop down list controls ID is 'dddCountry' ....... objDropDownList = document.getElementById('dddCountry') int selectedIndex=objDropDownList.selectedIndex; var SelectedText = objDropDownList.options[selectedIndex].text; var SelectedValue = objDropDownList.options[selectedIndex].value; ... Hope it helps ... :rolleyes:
Thanks, Arindam D Tewary
how can i count the total items in the dropdownlist using the java script.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
-
how can i count the total items in the dropdownlist using the java script.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
objDropDownList.options.length returns the length of items collection!!!
Thanks, Arindam D Tewary
-
how should i do with the dropdownlist in javascript.Like the selected-index , selected value , items.count functions in c#? actually i wanted to use the dropdownlist functions in javascript.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
Sonia Gupta wrote:
selected-index
ddl.options.selectedIndex
Sonia Gupta wrote:
selected value
var month=ddl.options.selectedIndex;
Sonia Gupta wrote:
items.count
dd.items.Length
bEst rEgard pAthan
please don't forget to vote on the post that helped you.
-
how should i do with the dropdownlist in javascript.Like the selected-index , selected value , items.count functions in c#? actually i wanted to use the dropdownlist functions in javascript.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
To create a select menu like dropdownlist(select) you can use the following code:
Select a page JavaScript Numbers Strings Navigation Colors JavaScripter.net
Just change the menu items and the corresponding URLs to whatever you want. You can use absolute URLs (like http://www.javascripter.net) as well as relative URLs (like mypage.htm). Regards, S.Arif patel Mind Source Pvt Ltd.
-
how can i count the total items in the dropdownlist using the java script.
Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1
Hi Sonia, Looking at u r quarries I suggest you to visit this following site "www.javascripter.net" just navigate FAQ section of this site u will get solution for u r quarries. Regards, S.Arif patel