I am trying to acheive this simple thing I have class dropdownlist that upon selection will fill another student dropdownlist, I am using jquery, below is my code
- $('#ddClass').on('change', function () {
- var ClassID = $('#ddlClass').val()
- $.ajax({
- url: 'StudentList',
- type: 'GET',
- contentType: 'apllication/html; charset=utf-8',
- data: { ID: ClassID},
- dataType: 'html',
- success: function (result) {
- $.each(result, function(index, row){
- $('#ddlStudent).append("
- }
- }
- })
Thank you!
Rijwan AnsariPosted Apr 17, 2021, 9:31 AM
Schleid AlexPosted Apr 16, 2021, 12:27 PM
Sachin SinghPosted Apr 16, 2021, 4:58 AM