To get control inside DetailView using JQuery
<pre><code>    &lt;asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"       DataSourceID="TimeEntriesDataSource"
                            RowStyle-VerticalAlign="Top" DefaultMode="Insert" HeaderStyle-HorizontalAlign="Center"
                            BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"
                            CellPadding="4" OnItemInserted="DetailsView1_ItemInserted" OnItemCommand="DetailsView1_ItemCommand"
                            OnItemInserting="DetailsView1_ItemInserting"&gt;
                            &lt;RowStyle VerticalAlign="Top" BackColor="White" ForeColor="#333333"&gt;&lt;/RowStyle&gt;
                            &lt;PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" /&gt;
                            &lt;Fields&gt;
                                &lt;asp:TemplateField HeaderText="Group"&gt;
                                    &lt;InsertItemTemplate&gt;
                                        &lt;asp:DropDownList ID="ddlGroups" runat="server"     DataSourceID="GroupsDataSource" DataTextField="Name"
                                            DataValueField="Id" AppendDataBoundItems="true" ValidationGroup="InsertTimeEntry"
                                            AutoPostBack="true" OnSelectedIndexChanged="ddlGroups_SelectedIndexChanged"&gt;
                                            &lt;asp:ListItem Selected="True" Text="-- Select --" Value=""&gt;&lt;/asp:ListItem&gt;
                                      &lt;/asp:DropDownList&gt;

                                        &lt;asp:ObjectDataSource ID="GroupsDataSource" runat="server" SelectMethod="GetSortedActiveGroups"
                                            TypeName="NicorNational.TimeTracker.BLL.Gateway"&gt;&lt;/asp:ObjectDataSource&gt;
                                    &lt;/InsertItemTemplate&gt;
                                &lt;/asp:TemplateField&gt;

                            &lt;/Fields&gt;
                            &lt;EditRowStyle Font-Bold="True" /&gt;
            &lt;/asp:DetailsView&gt; 
</code></pre>

<p>How can we write JQuery function to get Dropdownlist from Details View? I need to alert user if there is any change in Dropdownlist. im writing something like this but it is not getting fired when dropdown values is changed by user.</p>

<pre><code>             $(document).ready(function () {
                           $(#ddlGroups).change(function () {
                               alert("Hello world!");
                           });
                        });
</code></pre>

<p>[EDIT] I have one more question. Based on the dropdown selection I need to get the corresponding Description from the ObjectDataSource. Here is the Server Side Code.
Can you please give me equivalent JQuery function?</p>

<pre><code>              protected void ddlActivityTypes_SelectedIndexChanged(object sender, EventArgs e)
                    {
                        string description = string.Empty;
                        var ddlActivityTypes = DetailsView1.FindControl("ddlActivityTypes") as DropDownList;
                        var textBox1 = DetailsView1.FindControl("TextBox1") as TextBox;
                        var activityDataSource = DetailsView1.FindControl("ActivityTypesDataSource") as ObjectDataSource;

                        if (!string.IsNullOrEmpty(ddlActivityTypes.SelectedValue))
                        {
                            IEnumerable IDs = activityDataSource.Select();

                            foreach (ActivityType item in IDs)
                            {
                                if (item.Name == ddlActivityTypes.SelectedItem.Text.ToString())
                                {
                                    description = item.Description;
                                }
                            }

                            textBox1.Text = description;
                        }

                    }
</code></pre>

<p>I was trying something like this in JQuery, but it doesn't work.</p>

<pre><code>                   $(document).ready(function () {
                       $('select[id*=ddlActivityTypes]').change(function () {
                           var selectedText = $('select[id*=ddlActivityTypes]').find("option:selected").text(); ;
                           var data = $('select[id*=ActivityTypesDataSource]').select();

                           data.each(function () {
                               if (selectedText == this.Name) {
                                   alert(this.description);
                               }

                       });
                   });
</code></pre>
