$(document).ready(function () { if ($("input[name=radio1]").val() == "choice-2") { if ( $("#txt3PRecipientName").val() == "" || $("#txt3PRecipientSurname").val() == "" || $("#txt3PRecipientId").val() == "" || $("#txt3PRecipientId").val() == "" || $("#txt3PRecipientNo").val() == "" || $("#txtEmail").val() == "" || $("#txtId").val() == "" || $("#txtCompanyName").val() == "" || $("#txtStreet").val() == "" || $("#txtSearch").val() == "" || $("#txtCity").val() == "" || $("#txtPostal").val() == "" ) { $("#btnSubmit").attr("disabled", true) } } else if ($("input[name=radio1]").val() == "choice-1") { if ( $("#txtEmail").val() == "" || $("#txtId").val() == "" || $("#txtCompanyName").val() == "" || $("#txtStreet").val() == "" || $("#txtSearch").val() == "" || $("#txtCity").val() == "" || $("#txtPostal").val() == "" ) { $("#btnSubmit").attr("disabled", true) } } });
$("input[name=radio1]").val() to $('input[name="radio1"]').val()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)