I am trying to show multiple selected option of a person from selected value. Here is an example but not working.
I want to do like this dynamically .
I am trying to show multiple selected option of a person from selected value. Here is an example but not working.
I want to do like this dynamically .
Basicly you need a trigger("chosen:updated")
I'd updated your fiddle, you can find here http://jsfiddle.net/ebilgin/hdz8f1b6/2/. I hope it works for you.
$('.value').val('demo 1,demo 2');
$('.chosen-select').val($('.value').val().split(',')) // set value, accepts array
$('.chosen-select').chosen();
$('.chosen-select').on('change', function() {
values = $('.chosen-select').val();
$('.value').val(values);
}) ;
HTML
<input type="checkbox" name="GE[]" value="Brainometer>
<input type="checkbox" name="GE[]" value="Hot Seat">
<input type="checkbox" name="GE[]" value="Mind Drill>
<input type="checkbox" name="GE[]" value="Techno Art>
<input type="checkbox" name="GE[]" value="Photography">
If U Want to get multiple selected option of a person from selected value Using PHP: use implode... multiple value can be store in $ge depends on what the user select...
PHP
if(isset($_POST['GE'])){
$ge = implode(", ",$_POST['GE']);
}else{
$ge = "";
}</p>