I have an asp.net page where I have declared static id's in the page declaration
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb"
Inherits="Test" ClientIDMode="Static" %>
On the page I have a combobox. ID=cmb_Marriage
At the end of my page I have the following function
$(window).load(function(){
var combo = $('#cmb_Married');
if(combo.get_selectedItem().get_Text() == "Yes") {
$('#div_Married').show("slow");
}
}
When I run the page I get an error on the third line of the above code. Error = Microsoft JScript runtime error: Object doesn't support this property or method.
I have tried changing first line to var combo = $find("<%= cmb_Married.ClientID %>");
but still get the same error.Any ideas why?