Hi guys I have been working on this for 2 days now and I am almost done but i have a small issue.
so i have 2 forms as the following structure
<form action=" this page " method="post">
<button id="add-driver">Add a driver</button> <!-- this button should open the dialog only -->
<input type="submit" value="add" />
so the problem that i am having is that when i press the add-driver button the dialog opens with the form. but it also submits the first form! so the dialog open for 1 second and then it closes and submits the first form!!!
When i put the code on a page by it self it works perfect with no issues! but when i put it along with the other form it does not work..
this is my code by itself is working fine "without the other form!" But I have to have the other form. Note: this could be a part of the prablem this code is working fine in IE9 and firefox but it is not working correctly in Google Chrome! the auto complete portion does not work on Google Chrome! and when i hit "Add Driver" button i get the following error
There was anSyntaxError: Unexpected token <error due to aparsererrorcondition.