$("#btnUpdate").click(function () { if ($("#drpstatusEdit option:selected").text() == 'Closed') { var OffshoreResourceIds = ''; $('#drpOffshoreUsersEdit :selected').each(function (i, selected) { OffshoreResourceIds = OffshoreResourceIds + ',' + $(selected).val(); }); if ($("#txtTicketDesc").val() == '') alert('description cannot be blank'); else searchUserWithoutCriterion(); } else { updateTickets(); } getTicketCount(); }); function updateTickets() { //some code with alert alert("something"); }
$("#btnUpdate").click(function (evt) { evt.stopPropagation(); evt.preventDefault();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)