I have button in the form, when loading the page that button need to click automatically , so i implemented trigger function in loading the page.but its keep on loading page ...
$(document).ready(function() {
$("#find").trigger('click');
}
<s:form action="productlist" id="searchForm" theme="simple" method="Post" onSubmit="FormSubmitHandler()">
<s:submit action="product" method="list" value="Find" />
</s:form>
Please advise.