SELECT MULTIPLE VALUE USING JQUERY API -


please me out value select in select multiple tags.

below jquery code

 $.get('/api/courses').done(function(data) {         var courses = data.courses;          object.keys(courses).foreach(function(key, data) {           $('#courses').append($("<option>", {             value: $('#courses').val(),             text : courses[key].course_name           }));         });     }); 


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -