Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

API Issue

Open ckocer opened this issue 10 years ago • 4 comments

Hi there. I've a form inside a MODAL. I want to submit this form via your API (for not to redirect page to form's target page).

I thnik there is an issue about using your api inside .click() method. IF form is INVALID and i click the submit button, form says that fill the fields which is OK. IF i fill the fields and validate the form then click the submit button, form IS NOT submits itself. I have to click TWICE to make it work

http://jsfiddle.net/hyncp66g/6/

ckocer avatar May 05 '16 15:05 ckocer

  1. the .form() method has no serializeForm' attribute (see http://semantic-ui.com/behaviors/form.html#/settings)
  2. Try changing the $("#btn-do-subscribe").click(function(){ to $("#btn-do-subscribe").on('click', function(){ - deprecated

romanzipp avatar May 05 '16 21:05 romanzipp

I've made the change. but result is the same. what am i doing wrong here :S

ckocer avatar May 06 '16 12:05 ckocer

A few things in your example should be done differently, I believe.

First, try making your modal the form itself

Here's an example of what I was talking about: http://jsfiddle.net/60y4y8hf/10/

dwightbcoder avatar May 10 '16 16:05 dwightbcoder