OL Learn

Disable Submit button if connectivity is lost


#1

Is there anyway to disable the Submit button if connectivity is lost?


#2

You will have to change you button type from submit to button and add the connectivity check in there.

If you have connectivity, then submit your form using the from id. $(’#myForm’).submit

JQuery documentation says you could also use $(“form”).submit, but that did not work for me.

SA