Can anyone help with a problem with a JQuery Find?
In the example below I want to find the select & text objects within Div1. Here is the HTML:

<div id="div1" style="border:solid 1px #c6c8dd; background-color:#ff0000; padding:5px;">
<div style="width:916px; padding-top:10px;">
<select id="Select1" runat="server"></select> :
<input id="Text1" style="width:200px;" type="text">
</div>
</div>

Here is the jQuery:

Select1 = jQuery("#div1").find("#Select1")[0];
Text1 = jQuery("#div1").find("#Text1")[0];

Select1 comes back as undefined, but it finds the Text1 object.

Can anyone tell me why I can't find the Select1 object?

The runat server messes up your id iirc. Use developer tools to see it when the page is loaded. Try using a class instead of an id, as they are unaffected.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.