I have MVC app.
I have written below code in the JS in Create view. Basically on the basis of selection on drop down I show and hide the div. Now the problem is below code works perfectly in Google chrome and Mozilla Firefox. but now working in IE 8.
What should I do ?
$('#PaymentType').change(function(){            
            var ptype=document.getElementById("PaymentType").value;        
            if(ptype=="On Account")
            {
                $(".InvoiceDiv").hide();
            }
            else
            {
                $(".InvoiceDiv").show();
            }
        });
 
     
    