Note that there are some explanatory texts on larger screens.

plurals
  1. POneed to enable submit button on select of radio button
    primarykey
    data
    text
    <p>i have a small form. I want enable submit button when all the all the radio button is selected.</p> <p>below is my code html </p> <pre><code>&lt;form action="#" id="form1" method="post"&gt; &lt;ul&gt; &lt;li&gt; &lt;h3&gt;Here’s what I want:&lt;strong class="result1"&gt;&lt;/strong&gt;&lt;/h3&gt; &lt;div&gt; &lt;span&gt;&lt;input type="radio" value="Cash Back rewards" name="want" id="01" /&gt;&lt;label for="01"&gt;Cash Back rewards&lt;/label&gt;&lt;/span&gt; &lt;span&gt;&lt;input type="radio" value="Travel rewards" name="want" id="02" /&gt;&lt;label for="02"&gt;Travel rewards&lt;/label&gt;&lt;/span&gt; &lt;span&gt;&lt;input type="radio" value="Gas rewards" name="want" id="03" /&gt;&lt;label for="03"&gt;Gas rewards&lt;/label&gt;&lt;/span&gt; &lt;span&gt;&lt;input type="radio" value="Shopping rewards" name="want" id="04" /&gt;&lt;label for="04"&gt;Shopping rewards&lt;/label&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;h3&gt;Here’s my credit story: &lt;strong class="result2"&gt;&lt;/strong&gt;&lt;/h3&gt; &lt;div&gt; &lt;span&gt;&lt;input type="radio" value="I’m new to credit" name="story" id="05" /&gt;&lt;label for="05"&gt;I’m new to credit&lt;/label&gt;&lt;/span&gt; &lt;span&gt;&lt;input type="radio" value="I pay my bills on time" name="story" id="06" /&gt;&lt;label for="06"&gt;I pay my bills on time&lt;/label&gt;&lt;/span&gt; &lt;span&gt;&lt;input type="radio" value="I’ve had credit issues in the past" name="07" id="issues" /&gt;&lt;label id="07"&gt;I’ve had credit issues in the past&lt;/label&gt;&lt;/span&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt; &lt;h3&gt;Here’s what I carry:&lt;/h3&gt; &lt;span&gt;&lt;input type="radio" value="I have a credit card with a good record" name="carry" id="08" /&gt;&lt;label for="08"&gt;I have a credit card with a good record&lt;/label&gt;&lt;/span&gt; &lt;span&gt;&lt;input type="radio" value="I don’t have a credit card with a good record" name="carry" id="09" /&gt;&lt;label for="09"&gt;I don’t have a credit card with a good record&lt;/label&gt;&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;input type="submit" value="" name="" class="find" /&gt; &lt;/form&gt; </code></pre> <p>i am weak in javascript please advise me.</p> <p>one more thing if li is not fix it will generate dynamically, so what i will have to do. basically every li is one quetion and radio button is option. so the question will be generate dynamically it can be any no. its not fix </p>
    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