i have a selection called .select_payment and a div called #billing
what im trying to do is when the user selects the selection and its value equals “credit”
i want the billing div to be displayed. it is hidden by default.
this is what i tried
$(document).ready(function() {
$(".select_payment").change(function() {
if($(this).val() == "credit")
{
$("#billilng").css('display','block');
}
});
});
when i select the option called credit, nothing happends.
With typo fixed, and a couple of lines added for testing, this works for me…