Send return key event using script

I have the following HTML form that I am trying to post to.

Sign In

Basically the form above takes an two input fields and than has a submit buttom.

The problem is that the submit button is initially greyed out until input is entered in both inputs. The onlyway I can get
the submit button to be ungreyed is doing a keypress in each input.


Is there a way to simulate keypress for the attributes username, and password.

So I did some research in javascript on my own and I did find a way to update my usecase.

The site that I work with includes jquery so I found this worked for me.

$(‘input’).change();

as an exec statement.