I created a button on a page (so there are now 2 buttons). One button is part of the Search Dialog and it just works, and then there is my custom button. I have some javascript on the custom button, but I cannot figure out how to make it submit. I am sure I am missing something very simple.
Please let me know the best way to submit/click/postback the button (or the form).
Here are some of my failed attempts :)
//document.getElementById($searchBoxSubmit.attr("id")).click();
//$searchBoxSubmit.trigger('click');
//document.form1.submit();
//document.forms['form1'].submit();
//$("form:first").trigger('submit');
//theForm.submit();
//theForm.onsubmit();
//WebForm_DoPostBackWithOptions({validation:false,trackFocus:true})
//WebForm_DoPostBackWithOptions({});
//WebForm_OnSubmit();
Thanks in advance!
- Mark