Result of a Submit within the DIV itself

1

I have a div (id = content) where I load other pages via jquery load. but I would like to know if it is possible to submit a form and have the return in the own div.

   $('#conteudo').on('click', '.menu', function () { 
   $('#conteudo').load(this.href); 
   return false; });

Currently when it is a common link I can read the page with the code above, I am trying to use the following form.

   $('#conteudo').on('submit', '#form', function () { 
   $('#conteudo').load(this.href); 
   return false; });

Is this possible?

    
asked by anonymous 28.03.2018 / 02:16

0 answers