jQuery Dialog Modal

jQuery Dialog Modal

Hello,

I am using a slightly modified version of the jQuery Dialog Modal demo to populate asmselect. I am having 2 problems. The page already has a form with a validation in it <form onsubmit="">

the validation verifies that a title is put and that the text is a certain length.

I placed the modal form outside of the form but the Create Contact button is in the form, right below the asmselect input. (I am using the modal to populate the asmselect). It works fine, except that when I click on the button, the alert from the form pops up to let me know that title cannot be empty.

1 - How can I prevent the alert from popping up when I call the modal?

2- Besides adding the new values to asmselect, how can I do an Ajax insert them in database?

Thank you.