Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check drop down list value 1

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I want to check the value of a drop down list and if the value is "" or NO throw a message and do not continue to open the popup window.. If it's value is YES then open the window. I'm passing a value from one form to another and want to add that check before opening the second window.

I'm opening the window using the following;

<script type="text/javascript">

function openRadWindow() {
var value = '<%= l2.Text %>';

var oWnd = radopen("MyForm.aspx?ID=" + value, "UserListDialog");
oWnd.center();
}
</script>

any help would be appreciated

Thanks
 
can you post the source of the page that is involved. You should be able to use something like [URL unfurl="true"]http://stackoverflow.com/questions/1085801/get-selected-value-in-dropdown-list-using-javascript[/url] to do what you need, couple it with a standard javascript IF and you should be done.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top