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 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

Ask A Question

Stats

  • Questions 84k
  • Answers 84k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this: <form onsubmit="parent.scrollTo(0, 0); return true"> ... I have… May 11, 2026 at 5:04 pm
  • Editorial Team
    Editorial Team added an answer Well, do sync(1), kill -1, sync again, kill -9 -1,… May 11, 2026 at 5:04 pm
  • Editorial Team
    Editorial Team added an answer In AIR you're guaranteed that Javascript will be enabled, so… May 11, 2026 at 5:04 pm

Related Questions

I am trying to make a search view in Django. It is a search
I am having a peculiar problem with the order in which FlowLayoutPanels are added
I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on
I am relatively new to MVC, so this is likely a novice question. I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.