JavaScript How to put 2 forms on one page forms page twitter,page forms mediawiki,pageant forms,pageant forms

Have you tried changing the second place that the following lines appears to something else?

<div class="loading"></div>
<div class="results"></div>

I see both javascript functions refer to an element like it's the only one, and you have two now. If you change the second one to this:

<div class="results2"></div>
<div class="loading2"></div>

Then you can change

function form2(){
   e.preventDefault();
   $('.loading').show();
   $.post('multi/sendmail2.php', $('.form2').serialize(), function(data){
     $('.results').html(data);
   }).success(function(){
     $('.loading').hide();
  })
}

to:

function form2(){
   e.preventDefault();
   $('.loading2').show();
   $.post('multi/sendmail2.php', $('.form2').serialize(), function(data){
     $('.results2').html(data);
   }).success(function(){
     $('.loading2').hide();
  })
}

I think that will give you greater success. Let me know if you run into any further problems after trying such a change

Answer:1

I'm making game like minecraft in javascript using WebGL. I have a problem with semi-transparent objects. First I tried to render all objects with depth-test and blending gl.blendEquation( gl....

I'm making game like minecraft in javascript using WebGL. I have a problem with semi-transparent objects. First I tried to render all objects with depth-test and blending gl.blendEquation( gl....

For example: for (var idx = 0, len = lines.length; idx < len; idx += 1) { /^regexp?/i.test(lines[idx]); } Would the following be more efficient? var pattern = /^regexp?/i; for (var idx = 0, ...

For example: for (var idx = 0, len = lines.length; idx < len; idx += 1) { /^regexp?/i.test(lines[idx]); } Would the following be more efficient? var pattern = /^regexp?/i; for (var idx = 0, ...

  1. does in javascript

Is there a workaround? I am running my own custom scrollbar script as opposed to using the built in browsers functionality. I prefer to use SVG for my image elements for a number of reasons, but one, ...

Is there a workaround? I am running my own custom scrollbar script as opposed to using the built in browsers functionality. I prefer to use SVG for my image elements for a number of reasons, but one, ...

Before I explain the problem, I want to describe short what I am trying to achieve I have made 5 diagrams and one NavigationList. The NavigationList consists of pure HTML that displays a list of ...

Before I explain the problem, I want to describe short what I am trying to achieve I have made 5 diagrams and one NavigationList. The NavigationList consists of pure HTML that displays a list of ...