I have this form

```html
<form id="form" method="POST" onsubmit="return validate()">
  <input type="text" id="name" name="name">
  <input type="submit" value="next">
</form>
```

and this validation

```js
if ($("#name").val() == "") {
  return false;
}
return true;
```

what I am trying to do, is to disable the submit button, I tried to use submit function for the form but its not triggered, the problem is I don't have access to html or js files, only one custom.js file I can add or override other functions.

anyone can help me ?

Thanks