Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AJAX CALL FOR CATEGORY(FIRST DROPDOWN)
- $(document).ready(function(){
- $('#select2').on('change',function(){
- $('#loading1').css("display","block")
- var catgoryId = $(this).val();
- if(catgoryId){
- $.ajax({
- type:'POST',
- url:'ajax_load_subcategory.php',
- data:{catgoryId:catgoryId},
- success:function(html){
- $('#select4').html(html);
- $('#loading1').css("display","none")
- }
- });
- }else{
- $('#select4').html('<option value="">Select Category first</option>');
- }
- });
- });
- //CALL FOR SECOND DROPDOWN
- $(document).ready(function(){
- $('#select4').on('change',function(){
- var subcatgoryId = $(this).val();
- alert(subcatgoryId);
- //HOW CAN I FILL THIRD DROPDOWN VALUES
- // BASED UPON SECOND DROPDOWN VALUES
- });
- });
Add Comment
Please, Sign In to add comment