Note that there are some explanatory texts on larger screens.

plurals
  1. POSubmitted info not passing through
    primarykey
    data
    text
    <p>I've got 7*4 sets of input boxes. What I need is for only the sets that are filled out to pass through but ignore the rest. The input boxes are dynamically created for 4 different columns, and as such they should pass through only to the correct one. Each column represents a different array of information. They are named four, three, two, and one. The boxes that are created have incrementally increasing id numbers via _1 _2 --> _7.</p> <pre><code>&lt;input id="&lt;?php echo $catkey; ?&gt;_addone_friendly_1" type="text" class="auto" size="9" /&gt;&lt;span&gt; - Friendly Name&lt;/span&gt;&lt;br /&gt; &lt;input id="&lt;?php echo $catkey; ?&gt;_addone_1" name="[&lt;?php echo $catkey; ?&gt;][]" type="text" class="auto" size="9" /&gt;&lt;span&gt; - Actual Name&lt;/span&gt;&lt;br /&gt; </code></pre> <p>The code I'm using which I'm sure I've screwed up is this (I have 4 copies of this for four_addone_, three_addone_ and so forth):</p> <pre><code>if ( $("id=[^four_addone_]").length ) { $("#^four_addone_").prop('name', 'four[' + $("#^four_addone_").length + '][]'); $("#^four_addone_").prop('value', $("#^four_addone_friendly_").length ); } else { $("#^four_addone_").remove(); } </code></pre> <p>Problem is that nothing is getting passed through when I click my submit button and I'm not sure what to do. I didn't write this from scratch, was helped by a friend who is no longer available; I'm a newbie with jquery. My site is: <a href="http://icloudbackups.com/mmgen/" rel="nofollow">http://icloudbackups.com/mmgen/</a></p> <p>Any help to get this going would be very much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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