Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- $("#select_test").change(function(){
- var optionVal = [];
- $.each($("#select_test option:selected"), function(){
- optionVal.push($(this).text());
- });
- var myselect = $('<select>');
- $.each(optionVal, function(index, key) {
- myselect.empty().append( $('<li class="list-group-item">').val(key).html(key) );
- });
- $('#test_item').append(myselect.html());
- });
- });
- </script>
Add Comment
Please, Sign In to add comment