var brand= $("select[name='brand'] option:selected").val(); var cartype = $("input[name='cartype']:checked").val();