Another Salesforce blog!!!

Salesforce, Apex


Selector using contain Id in Jquery


Selector using Class in JQuery


Jquery Selectors

Following are the Jquery selectors:


Check to see what checkbox is checked (looping)

  //flag for to check weather any option is selected or not. Default to all selected.         var flag = false;         //Retrieves controls for which the drop down selected option is set.         var dropDownControls = $(‘#<%=gv.ClientID %> select option:selected’);         var checkboxes = $(“.selectreject input[type=’checkbox’]”);         for (index = 0; index < checkboxes.length; […]

Check-All checkbox using GridView (


Check Or Uncheck Checkboxes within GridView in ASP.NET using JQuery

How to implement check and uncheckboxes within the gridview control using Source: Introduction Today I have implemented to my project to check and uncheck all checkboxes within gridview in So in this article we focus how to implement this features using JQuery with less code. And also I have given live demonstration as […]

How to grab the text inside the TextBox in ASP.NET using jQuery

   var _comment = $(“#[id*=’commentEdit’]”).val();  <asp:TextBox runat=”server” ID=”txtNewComments”  MaxLength=”300″ TextMode=”MultiLine” Rows=”7″ Width=”100%”></asp:TextBox> Favorite

How to restrict the user to allow only one checkbox of each checked?

i have a two columns (approve all/reject all) how to restrict the user to allow only one checkbox of each? output screen


Gridview itemTemplate enable/disable the dropdownlist based on the checkbox checked using jQuery

 <ItemTemplate>              <div>                 <asp:CheckBox CssClass=”selectme” ID=”chkReject” runat=”server” Checked=”false”>                 </asp:CheckBox>                 <asp:DropDownList runat=”server” ID=”detail” >                     <asp:ListItem Selected=”True” Value=”0″>Select me</asp:ListItem>                     <asp:ListItem Value=”1″>one</asp:ListItem>                     <asp:ListItem Value=”2″>two</asp:ListItem>                     <asp:ListItem Value=”3″>three</asp:ListItem>                     <asp:ListItem Value=”4″>four</asp:ListItem>                 </asp:DropDownList>             </div>         </ItemTemplate> protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {     var chk = e.Row.FindControl(“CheckBox1”) as CheckBox;     if […]