Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             $.getJSON("removerequest.htm",{ ids: selectedString }, function(data){
  2.                 $('#removerequestdiv').text('');
  3.                
  4.                 var output = [];
  5.                 output.push('<select id="addedList" multiple="multiple" size="10">');      
  6.                 for (var index in data) {
  7.                     output.push('<option value="' + data[index].id + '">' + data[index].voornaam + data[index].familienaam + '</option>');
  8.                 }
  9.                 alert(output);
  10.                 output.push('</select>');
  11.                 $('#removerequestdiv').html(output.join(' '));     
  12.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement