how to differentiate between javascript triggered submit and manually clicking form submit
sample code below
function myfunction()
{
document.getElementById("id_searchform").submit();
return true;
}
form:
<div class='row'>
<div class='col-md-4'>
<div class='clszipcode' ><span>Enter Zipcode</span></div>
</div>
<div class='col-md-4'>
<div class='clstxtzipcode' ><input type="text" name="zip_code" id="txtZipcode"></div>
</div>
<div class='col-md-4'>
<div class='clsbtnzip' ><input type="submit" name="submit" id="btnSearch" value="Search" class="button_example" ></div>
</div>
</div>
<a href="#" onclick="return myfunction();" >click to submit</a>