Note that there are some explanatory texts on larger screens.

plurals
  1. POam i over targetting an object
    primarykey
    data
    text
    <p>have a radio in a form which i have dressed up with jquery and css. now i want to do more jquery to it but when i run both codes, then the li does does not close once the radio has been selected. once you click the radio bitton the li should close. aslo need to tell it to do the following: take the radio selected radio swap with input=name"radio_selected". so that the selected radio in the hidden li will move out of the hidden li and swap positions with one that is not hidden on the page.</p> <pre><code> $("input[name='domain_ext']").each(function() { $("#radio_select").attr('checked', 'checked'); var lbl = $(this).parent("label").text(); if ($(this).prop('checked')) { $(this).hide(); $(this).after("&lt;div class='radioButtonOn'&gt;" + lbl + "&lt;/div&gt;"); } else { $(this).hide(); $(this).after("&lt;div class='radioButtonOff'&gt;" + lbl + "&lt;/div&gt;"); } }); $("input[type=radio]").change(function() { $(this).siblings('.radioButtonOff').add('.radioButtonOn').toggleClass('radioButtonOff radioButtonOn'); }); $('div.ribbonBoxarrow').click(function() { $('.ribbonBoxarrow li').show('medium'); return false; }); // once you leave the div (which is contained in the above li hide. $('.ribbonBoxtab').mouseleave(function() { $('.ribbonBoxarrow li').hide('slow'); //missing . return false; }); //if a radio buttn is clicked the hide li $("input[name='domain_ext']").click(function() { //changed .each to .click $('.ribbonBoxarrow li').hide('slow'); //missing . return false; }); </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