Hi guys. And doing a system in spring. I want to cascade a dropdown list such that the selection on the first dropdown affect what appears in the second dropdown. All these data should come from a database. What I am getting online is using php is not what I want. Any help will be appreciated. Attached is what I have done.
-
Html
3rd Party Category Select Category
3rd Party Name
2.ajax
("#selectCategory").change(function(){ var code = $(this).val(); $.ajax({ type: 'GET', url: "/importPayments/thirdParties/" + code, success: function(data){ var selectThirdParty=$('#selectThirdParty'), option=""; selectThirdParty.empty(); for(var i=0; i