$scope.FnReset = function(){$("input[type='reset']").click();$scope.frmRg.$setPristine();$scope.rg={};};
$("input[type='reset']").on("click", function (event) {console.log(" *** button reset *** ");event.preventDefault();var myForm = $(this).closest('form').get(0);myForm.reset();$("select", myForm).each(function () {$(this).select2('val', $(this).find('option:selected').val())});});