Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getText(){
- $(document).on('change', '#change', function(){
- $(".value_change").prop('value', 'Potvrdi');
- var val = $(this).val();
- var text = $('option:selected', this).text();
- var valuee=$('option:selected','#select').text();
- var content = '<li>'+text+'('+valuee+')'+'<a class="speclist-remove"></a></li>';
- $('ol').append(content);
- content="";
- $('option[value="'+val+'"]', this).prop('disabled', 'disabled');
- });
- $(document).on('click','ol li',function(){
- var arr=$(this).text().split('(');
- $(this).remove();
- $('#change option[value="'+arr[0]+'"]').prop('disabled', false);
- if ( $('ol').children().length === 0 )
- $(".value_change").prop('value', 'Zatvori');
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement