Hi all
When I use the following code I get combo2 as null
var combo2 = $find('<%= rcb_DbPrefixes.ClientID %>');
When I try one of the following I get a get an object
var combo2 = $get('<%= rcb_DbPrefixes.ClientID %>');
var combo2 = document.getElementById('<%= rcb_DbPrefixes.ClientID %>');
However, when I try using functions such as:
var item = combo2.findItemByText(text);
or
combo2.get_items()
I get that those functions are undefined for the object. When I look at the object's methods with the debugger I see many methods but non of them are the ones shown above.
What am I doing wrong?
Thanks a million,
Avi
When I use the following code I get combo2 as null
var combo2 = $find('<%= rcb_DbPrefixes.ClientID %>');
When I try one of the following I get a get an object
var combo2 = $get('<%= rcb_DbPrefixes.ClientID %>');
var combo2 = document.getElementById('<%= rcb_DbPrefixes.ClientID %>');
However, when I try using functions such as:
var item = combo2.findItemByText(text);
or
combo2.get_items()
I get that those functions are undefined for the object. When I look at the object's methods with the debugger I see many methods but non of them are the ones shown above.
What am I doing wrong?
Thanks a million,
Avi