Replacing a <input submit> with a <href> withing ExtJS
I have a simple ExtJS Grid that I've tied some custom JS validation to using EXTjs..
I'd like to replace the forms submit Button w/ an HREF like below.. But I'm unsure how to get my HREF to fire the same validation events as the submit button?
<input type="submit" value="Update Selections" class="primary"/> (works)
<a href="javascript:document.forms['setSiteAccountsForm'].submit()" name="_submit">Update Selections</a> (doesn't catch the validation)
...
onReady()
Ext.get('setSiteAccountsForm').on('submit', function(e, t) {....validation.... etc}
make sense?
Sorry new to the JS side of this :)
any help is appreciated -