“Предотвратить форму отправки html javascript jQuery” Ответ

jQuery предотвращение формы подачи

    //option A
    $("form").submit(function(e){
        e.preventDefault();
    });
Alberto Peripolli

остановите форму jQuery

/* joshiyogesh0333@gmail.com */
// when  ever need to stop next exicution then call the below function
// for more sourch : https://github.com/joshiyogesh0333/opensourchcode
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
Delightful Donkey

Предотвратить форму отправки html javascript jQuery

    // BEST OPTION
	JUST:
* delete the <button></button> in the friggin FORM and add <a></a> with the same style instead, THE FORM WONT BE SUBMITTED THIS WAY. 
* REMOVE THE action="" and method="" tags, and replace them in JQUERY\JS fetch() or $.ajax() functions!

** VOILA **

    //option B
    $("form").submit(function(e){
        e.preventDefault();
    });
Valentino_Rossi

Ответы похожие на “Предотвратить форму отправки html javascript jQuery”

Вопросы похожие на “Предотвратить форму отправки html javascript jQuery”

Больше похожих ответов на “Предотвратить форму отправки html javascript jQuery” по JavaScript

Смотреть популярные ответы по языку

Смотреть другие языки программирования