How do you get the value of a combo box in Javascript?

Answer Posted / abdul rasheed

document.frmname.comboboxname.value

or


document.frmname.getElementById(comboboxname).value

Is This Answer Correct ?    11 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1506


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1788


How will you get the natural logarithm of the given number in vbscript?

601


Explain the functionality of vbscript?

538


what types of bugs will we find out in banking projects for automation testing?

1762






Explain the tristate constants in vbscript?

557


How will you get the last occurrence of one string within another string using vbscript?

682


What are the valid scopes of a variable in vbscript?

606


Explain about tristate constants in vbscript?

610


i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

2340


Out of the different type of operators, which are evaluated first and last in the vbscript language?

559


Which operator can be used to change the value of the operand or change the state of the condition?

573


What is the main difference between function and sub-procedure?

549


Which date function is used in the vbscript language to find the difference between the 2 dates?

589


How to pass argument by reference to a function in vbscript?

536