I want to check whether the textbox is disabled or not. If we try to click on the disabled textbox. It should show an alert message.
This is my model code :
var isDisabled = $("#Travellerpaymentinfo_cc_number").prop('disabled');
if(isDisabled==1)
{
$("#Travellerpaymentinfo_cc_number").click(function(){
alert("The textbox is clicked.");
});
}