php - Show products after selecting a brand -
this question has reply here:
dropdown select based on database entries 4 answersi'm wondering how create when select brand in drop downwards menu update other drop downwards menu prodcuts brand
example:
so when select brand in "make" section has set products brand in "make" section
http://i48.tinypic.com/rck903.jpg
thanks if helps me.
if want without postback, have alter event of brand's dropdown , send ajax request server products according brand id , in success function fill product dropdown json output
example done jquery:
$('#brand_dd').change(function(){ $.post( 'url', {'brand_id': $(this).val()}, function(data){ //fill drop here } }
php mysql database
No comments:
Post a Comment