JavaScript: Programmatically Click The Form Submit Button
Join the DZone community and get the full member experience.
Join For Free// Programmatically Click the Form Submit Button
// by using the 'click()' method
submitTags : function()
{
var btnSubmitTags = document.getElementById( TagsHelperConfig.FORM_TAGS_ENTRY_SUBMIT_BUTTON_ID );
// Programmatically click the submit button
btnSubmitTags.click();
}
Form (document)
JavaScript
Opinions expressed by DZone contributors are their own.
Comments