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

  • SEARCH
  • Home
  • 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 539909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:11:09+00:00 2026-05-13T10:11:09+00:00

<input type=’radio’ name=’rbTemplateList’ id=’template1 value=1 > <input type=’radio’ name=’rbTemplateList’ id=’template3 value=3 > <input type=’radio’

  • 0
<input type='radio' name='rbTemplateList' id='template1" value=1    >
<input type='radio' name='rbTemplateList' id='template3" value=3    >
<input type='radio' name='rbTemplateList' id='template5" value=5    >
<input type='radio' name='rbTemplateList' id='template7" value=7    >

I want to onclick one of the rbTemplateList, will raise ajax call (jquery style)
But it is not working at all…

I believe it is something gotta do with id & name attribute

        $(document).ready(function() { 


        var f = document.frm;


         $("#rbTemplateList").click(function() {

                pkTemplate= getSelectedRadioValue(f.rbTemplateList);

                $.ajax({

                url: "ajaxColor.php",

                type: "POST",

                data: 'pkTemplate='+pkTemplate,

                timeout: 5000,               

                beforeSend: function(){ },

                error: function(XMLHttpRequest, textStatus, errorThrown) {

                },     

                success:  function(output) {



                },

                complete: function(){ }                                

                }); 

            })  
  }); 
  • 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-05-13T10:11:09+00:00Added an answer on May 13, 2026 at 10:11 am

    HTML
    changes “name” with “class”

    <input type="radio" class="rbClassTemplateList" name="rbTemplateList" id="template1" value="1" />
    <input type="radio" class="rbClassTemplateList" name="rbTemplateList" id="template2" value="2" />
    ...
    

    JS
    changes “#rbTemplateList” with “.rbClassTemplateList”

    ...
     $(".rbClassTemplateList").click(function() {
    ...
    

    OR

    <input type='radio' name='rbTemplateList' id='template1" value="1"   />
    <input type='radio' name='rbTemplateList' id='template3" value="3"   />
    <input type='radio' name='rbTemplateList' id='template5" value="5"   />
    <input type='radio' name='rbTemplateList' id='template7" value="7"   />
    

    JS:

    ...
     $("input[name='rbTemplateList']").click(function() {
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to detecting when a user clicks OUT of an input type Text
Possible Duplicate: jQuery change input type How to replace input[type=submit] to input[type=text] using jQuery?
I am looking to customize the input type file to a custom browse button.
i am creating a dynamic text box of input type with the help of
Supposedly in HTML5 in Safari, you can define your input type as search and
I want to handle html elements differently based on their type. Using jquery, how
With javascript, i want my checkbox to change the text decoration of an input
How do you refer to elements of array in Jquery? For instance - input
given a list like: 1,3,412,51213,djdd@asdasd.net, blahblah, 123123123123 which lives inside of a input typetext
I wrote next jsp: <html> <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8> <title>JSP Page</title> <link rel=stylesheet

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.