Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form submit reload #188

Closed
nicdnepr opened this issue Dec 5, 2018 · 2 comments
Closed

form submit reload #188

nicdnepr opened this issue Dec 5, 2018 · 2 comments

Comments

@nicdnepr
Copy link

nicdnepr commented Dec 5, 2018

new Pjax({
        elements: 'a[ajaxLink], li.page a, div.sorter a, form',
        selectors: ['#page']
    });

Why $('#form-id').submit(); not work? It reloads page
If click submit button- then works

@BehindTheMath
Copy link
Collaborator

I don't know how jquery's submit method works. If you're using jquery anyway, why don't you use jquery-pjax?

@nicdnepr
Copy link
Author

nicdnepr commented Dec 5, 2018

jquery-pjax gives errors in my case
this library work perfect
I can use hidden submit button, but it looks not beautiful as for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants