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();
}
โ
Opinions expressed by DZone contributors are their own.
Comments