Note that there are some explanatory texts on larger screens.

plurals
  1. PO"too much recursion" error in JQuery 1.3.2
    primarykey
    data
    text
    <p>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.</p> <p>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".</p> <p>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:</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt;&lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;quiz test&lt;/title&gt; &lt;script type="text/javascript" src="jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class='question'&gt;Favorite soda? &lt;div&gt;&lt;input type='radio' name='q' value='A' id='a'&gt;&lt;label for='a'&gt;Coke&lt;/label&gt;&lt;/div&gt; &lt;div&gt;&lt;input type='radio' name='q' value='B' id='b'&gt;&lt;label for='b'&gt;Pepsi&lt;/label&gt;&lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(function() { $(".question div").click(function() { $(this).children("input").click(); }); }); &lt;/script&gt; &lt;/body&gt;&lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload