Monday, 9 October 2017

disable submit button using jquery

<form id="frm_name">
     <input type="submit" id="btn_submit" value="Submit" />
</form>
jQuery
...
if (formId != ''){
    $('#btn_submit').attr('disabled',true);
    this.submit();
}

No comments:

Post a Comment

React Hooks - custom Hook

  v CustomHook Ø React allows us to create our own hook which is known as custom hook. Example – 1 localStorage Demo Step-1 Create ...