Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8964041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:29:44+00:00 2026-06-15T16:29:44+00:00

I have a .aspx page (vb.net back-end) that I am adding jQuery functions to

  • 0

I have a .aspx page (vb.net back-end) that I am adding jQuery functions to to decrease postbacks. the page has around a dozen gridviews that are bound to data and have 5 templated field that are not (1 check box and 4 radio buttons per row).

What I am trying to accomplish is jquery functionality that handles changes to the template columns. I have jquery working perfectly, but only if there is one gridview that I am working with. As I stated previously, the page has ~12 gridviews total, all formatted the same and thus need jquery to operate the same. (one option is to replicate what I have 12 times :(…)

I thought that if I could get this to work for two of the twelve, then I’d be set, but I can’t figure it out. I’m very new to jquery and what i do have working is in thanks to these and other message boards. After much searching, using ‘.class’ seems to be the answer to what i am wanting to accomplish, but it is not working as I’d expect.

I’ve taken the html and and what jquery I am trying to get to work and loaded it here to jsFiddler

Can someone take a look and help me get the ‘alert’ for my ‘.class’ to work? If I get this going, I think I may be able to handle the rest of the jquery I will need.

The first two work as expected. The last only works for the first item with the class ‘rbAllNA’:

$(document).ready(function() {
$(rbAllNA1).live('click', function() {
    alert($(this).attr('class'));
});
$(rbAllNA2).live('click', function() {
    alert($(this).attr('class'));
});

$(".rbAllNA").live('click', function() {
    alert("call from class");
});
});

See http://jsfiddle.net/jkmurphy1/68Mpy/1/ for the full scenario.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:29:46+00:00Added an answer on June 15, 2026 at 4:29 pm

    The problem with you code was

    In the first table – class="rbAllNA"

    In the second table – class="rbAllNa" <– a should have been uppercase

    Your selector is $(".rbAllNA")

    HTML attributes are case sensitive .. So the later won’t work..

    Check Fiddle

    .live() has been deprecated as of 1.7.0 .. Attach events using .on() instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.net aspx page that's composed of 3 iframes. One for the
I have a C#/ASP.NET .aspx page that declares two controls that each represents the
I have a button on an ASP.Net page that will call Response.Redirect back to
I have an ASP.NET website with a C# back-end that uses Jqgrid. I want
I have an ASP.NET page with code-behind in VB.NET. On the ASPX page I
I have an ASP.NET web page(Not MVC ) (HomePage.aspx) and another page (PRiceList.aspx).I have
I have a .Net 1.1 webapp with a aspx page with the attribute SmartNavigation=true
I have a asp.net repeater control in a aspx page, with runat=server and an
I have the list box control (ASP.NET Control On aspx page, language C# ).
I have an ASP.Net Page, aspx with its default form. I have a Submit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.