Es gibt drei Kontrollkästchen. Ich möchte die Antwort als wahr erhalten, wenn das entsprechende Kontrollkästchen aktiviert und falsch ist, wenn nicht aktiviert.Wie man den Checkboxwert prüft, ist wahr oder nicht? Ich brauche jquery für diese
<div class="">
<p>
<input type="checkbox" id="indeterminate-checkboxm1 stream_id1" />
<label for="indeterminate-checkboxm1" class="black-text">B.Tech/B.E.</label>
</p>
<p>
<input type="checkbox" id="indeterminate-checkboxm2 stream_id2" />
<label for="indeterminate-checkboxm2" class="black-text">Diploma</label>
</p>
<p>
<input type="checkbox" id="indeterminate-checkboxm3 stream_id3" />
<label for="indeterminate-checkboxm3" class="black-text">B.Sc</label>
</p>
</div>
Mögliches Duplikat von [Check, wenn das Kontrollkästchen mit jQuery aktiviert ist] (https://stackoverflow.com/questions/2204250/check-if-checkbox-is-checked-with-jquery) –
'$ (" # indeterminate-checkboxm2 stream_id2 ": checked") 'oder' $ ("# indeterminate-checkboxm2 stream_id2"). is (": checked") ' –