validation - nyroModal v2: How to validate form opened in iframe? -


I am trying to figure out how to open a form opened by nyroModal.

The page is opening as a button click below:

  $ (function () {$ ('.btnedit'). Click (function () {$ .nmManual ('form_page.php);});});   

On the form that opens, I have some fields which are mandatory and cancellation and amp; submit button.

  & lt; A class = "neeromodelclos button" href = "#" id = "btn_submit"> Submit & lt; / A & gt;   

When clicking on the Submit button, I want to make sure that the mandatory field is valued. If not, an error message should be displayed & amp; The modal window should not be closed.

I am trying to use jquery verification plugin but without success Regardless of valid scripts, the modal window is always switched off.

I have not got much information about form validation in a model window. Is not this a favorite approach?

Thanks in advance.

I am not able to help you about jquery validation plugin in a modal window, but I know that $ .nm manually using that instruction, the form will not be placed inside the iframe tag, and if I correctly remember the content of the new page will be added without the title and body tag, so In a word I think wrongly that no recognition can be obtained from this .

It is here that you need to use the filter to successfully open an iframe:

I hope this can help you.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -