Skip to content

Instantly share code, notes, and snippets.

@ianthompson
Last active September 24, 2016 09:46
Show Gist options
  • Save ianthompson/95b9a541a6844fdf2f620a566c95bae4 to your computer and use it in GitHub Desktop.
Save ianthompson/95b9a541a6844fdf2f620a566c95bae4 to your computer and use it in GitHub Desktop.
HTML and JavaScript example in Beaver Builder
<h4>Enter a name and click "Submit"</h4>
<form id="loginInfo" >
<input id="userName" type="text" name="user" size="40" placeholder='Username' /><br>
<input id="loginButton" type="button" value="Submit" onclick="loginButtonClick()" />
</form>
<script>
function loginButtonClick() {
var username = document.forms.loginInfo.userName.value;
alert(username);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment