jquery ajax jquery ajax başka tetikliyor

0 Cevap php

I have drop-downs for:
1. manufacturer
2. products
3. colours

Manufacturer drop is fetched with page.
When I select manuf. from it Ajax appends #2.
When I select product, Ajax appends #3

Problem is, that #3 is is not being fetched.
I appreciate a hint.

Kod Kullanmak:

    $("#manuf").change(function(){
        var manuf_id = $("#manuf").val();
        $.ajax({ type: "POST", url: "ajax_product_preload.php", 
                data: "manuf_id=" + manuf_id,
                success: function(data){
                    $("#prod_div").hide().html(data).fadeIn(); 
                    }
              });       
        });

Code for colour is similar, just a IDs, php file and data string change.
Php files are simple db queries and dropdowns, so posting them would be a waste of SO hdd .. I guess.

0 Cevap