I have the following code for a form and javascript in a
JSP. The problem I'm facing is as follows:
When I hit the save button, and if
if(speciesid === 2){ condition is satisfied and I hit the "SAVE" button from the jquery dialog, it's not hitting the controller. However, whenever the
if(speciesid === 2){
condition is not satisfied, it works fine and hits my controller. I have some suspicion about this line "
document.getElementById("orderForm").submit();". Can anyone see any issue in my code?Other form fields have been omitted to avoid large code content