Hi everybody,
On my page I have to select option values loaded by a $.post funtion. I have a button to "move" data from one select to the other. The example works in a new page but not in my page not. The elements selected do not move to the other select after the click.
The question is there is another way to do it or how can i correct my page for making it work?
thanks in advance, follow example code:
<div style="float:left; border:1px solid red;">
<div style="background-color:red; color:white;" align="center">INFORMATIVE</div>
<div id="prop_info" style="float:left;">
<div style="border:1px solid red;">PROPOSTI</div>
<div style="float:left"><select multiple id="sel_info_pro" name="sel_info_pro" class="sel"><option value="b">a</option><option>b</option></select></div>
<div style="float:left;"><a href="#" id="add_info"> >> </a><br><a href="#" id="remove_info"> << </a></div>
</div>
<div id="conf_info" style="float:left;">
<div style="border:1px solid red;">CONFIGURATI</div>
<select multiple id="sel_info_conf" name="sel_info_conf" class="sel"></select>
</div>
</div>
$(document).ready(function(){
$('#add_info').click(function() {
return !$('#sel_info_pro option:selected').remove().appendTo('#sel_info_conf');
});
$('#remove_info').click(function() {
return !$('#sel_info_conf option:selected').remove().appendTo('#sel_info_pro');
});
});