Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Wrap ur options in a div with a class name called 'wrapper'.This will hold the options and the hidden text box.</p> <pre><code>&lt;div class="wrapper"&gt; &lt;p&gt;FIELD SET 1&lt;/p&gt; &lt;input class="checkbox o99_remove_check" type="checkbox" value="Option1" name="brsa-remove-SubMenu-general.php"&gt;Option1 &lt;br&gt; &lt;input class="checkbox o99_remove_check" type="checkbox" value="Option2" name="brsa-remove-SubMenu-writing.php"&gt;Option2 &lt;br&gt; &lt;input class="checkbox o99_remove_check" type="checkbox" value="Option3" name="brsa-remove-SubMenu-reading.php"&gt;Option3 &lt;br&gt; &lt;input type="text" value="" name="o99_brsa_settings[brsa_remove_menu_list]" id="o99_brsa_settingsbrsa_remove_menu_list_big" class="regular-text" disabled="true"&gt; &lt;label for="o99_brsa_settingsbrsa_remove_menu_list_big" class="description"&gt; &lt;br&gt;this will actually be hiiden field&lt;/label&gt; &lt;/p&gt; &lt;/div&gt; </code></pre> <p>Have a script that will attach a common event for all ur checkbox as below:</p> <pre><code>jQuery(document).ready(function () { var $checkboxes = jQuery(".wrapper .checkbox"); $checkboxes.on('change', function () { var ids = jQuery(this).parent().find('.checkbox').filter(':checked').map(function () { return this.value; }).get().join(' | '); jQuery(this).parent().find('.regular-text').val(ids) }); }); </code></pre> <p>This script will find the parent of the selected checkbox group and will find the HiddenTextBox (identified by 'classname regular-text') an display the value as u desire. Also any no o iterations,u need no chage on ur script.Just add the HTML fragment (make sure u give the correct className)...Hope this helps... for JsFiddle:<a href="http://jsfiddle.net/GUZaD/9/" rel="nofollow">http://jsfiddle.net/GUZaD/9/</a></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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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