$("#btnSaveData").click(function (event) { if ($('#name').val().length > 0) { if ($('address').val().length == 0) { alert('Address is required.'); } } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)