I am pretty sure I am calling my .js file correctly, using
<input name="btnAddJob" type="button" id="btnAddJob" value="List Job" onClick="listJob();" class="box">
However, within my .js file, this function works:
window.location.href = 'index.php?view=add';
But when I modify it to a simple submit, it doesnt work.
The above code will not respond (I am trying to submit the contents of a form.. I intend on adding some validation before submitting).
Again, I am calling the file correctly... It just stops working when I change "window.location.href = 'index.php?view=add';" to "submit();"
I would like to know why this is happening.