Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Because we can't see <em>all</em> of your <code>form</code>s, I'm not entirely sure, but given your question I'm going to assume that the other forms all share the same <code>id</code> (<code>form#submit_wall</code>), which is invalid an <code>id</code> <strong>must</strong> be unique within the document.</p> <p>Given that you're going to change the <code>id</code> of the other forms (I'd suggest using a <code>class</code> name of, probably, 'submit_wall', but the specifics are up to you), the jQuery needs to be changed, too. From:</p> <pre><code>$("form#submit_wall").submit(function() { </code></pre> <p>To:</p> <pre><code>$("form.submit_wall").submit(function() { // using the class-name instead of the id. </code></pre> <p>Now, of course, you run into the same problems of duplicate <code>id</code>s.</p> <p>So I'd suggest, again, changing the <code>id</code> to a <code>class</code> and changing:</p> <pre><code>var message_wall = $('#message_wall').attr('value'); var id = $('#id').attr('value'); </code></pre> <p>to:</p> <pre><code>var message_wall = $(this).find('.#message_wall').attr('value'); var id = $(this).find('.id').attr('value'); </code></pre> <p>Given the mess that you've posted, above, I find it hard to believe that this is all you need. It would definitely be worth posting the full page (or a demo at <a href="http://jsfiddle.net/" rel="nofollow">JS Fiddle</a> or <a href="http://jsbin.com/" rel="nofollow">JS Bin</a>) that <em>fully</em> reproduces your code.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload