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 145225
In Process

The Archive Base Latest Questions

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

I am trying to make a form with some dynamic behavior. Specifically, I have

  • 0

I am trying to make a form with some dynamic behavior. Specifically, I have my inputs in divs, and I would like to make it so when the user clicks anywhere in the div, the input is selected. I was using JQuery 1.2.6 and everything worked fine.

However, I upgraded to JQuery 1.3.2 and I am getting some strange behavior. When I click on any of the inputs, I get a delay before it is selected. My Firefox error console gives me several ‘too much recursion’ errors, from within the JQuery library. I tried the page in Internet Explorer 7 and got an error saying ‘Object doesn’t support this property or method’.

Am I doing something wrong, or is this a bug in JQuery? Does anyone know a way to fix this behavior, without going back to the old version? I am using Firefox 3.0.7 in case that matters. Here is a simple example I made to illustrate the problem:

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'> <html><head> <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'> <title>quiz test</title> <script type='text/javascript' src='jquery-1.3.2.min.js'></script> </head> <body> <div class='question'>Favorite soda?     <div><input type='radio' name='q' value='A' id='a'><label for='a'>Coke</label></div>     <div><input type='radio' name='q' value='B' id='b'><label for='b'>Pepsi</label></div>     </div> <script type='text/javascript'> $(function() {     $('.question div').click(function() {         $(this).children('input').click();     }); }); </script> </body></html> 
  • 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. 2026-05-11T08:23:10+00:00Added an answer on May 11, 2026 at 8:23 am

    Thank you all. I tried grillix’s idea of setting the checked attribute, although I had to fix up the syntax a little bit. Here is what I did:

    $(this).children('input').attr('checked', true); 

    It works, but I am still curious as to why my previous way stopped working with JQuery 1.3.2. I know about the changes in event bubbling behavior, but why can’t I fix that by calling ‘event.stopPropagation()’ or ‘return false’ within my callback?

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

Sidebar

Related Questions

I was trying to make a custom application form. I've added some control like
I'm trying to make the following form in JSF 2.0 but a have some
I am trying to make a like/unlike system, when a user clicks like on
I am trying to make a form in which the user fills in values.
I'm trying to make a pull down menu post a form when the user
I am trying to make a query to get some results: I have a
I am trying to pass some JavaScript variables that I have assigned to form
i'm trying to make a form for my website, to transfer some data easily.
I have an otherwise functioning rails project where I'm trying to update some form
I am trying to make a dynamic form which retrives data. How can I

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.