Note that there are some explanatory texts on larger screens.

plurals
  1. PODOJO: how to change a dropped node and following nodes
    primarykey
    data
    text
    <p>I have following HTML:</p> <pre><code> &lt;form action="/Config.aspx/SDKHome/SaveSections" id="SaveSections" method="post"&gt; &lt;input name="[0].SchemaName" type="hidden" value="contactSection" /&gt; &lt;ul creator="attrCreator" data-dojo-type="dojo.dnd.Source" class="section container dojoDndSource" style="list-style-type: none;"&gt; &lt;li class="dojoDndItem"&gt; &lt;input name="[0].DefinedAttributes[0].SchemaName" type="hidden" value="firstname" /&gt; &lt;/li&gt; &lt;li class="dojoDndItem"&gt; &lt;input name="[0].DefinedAttributes[1].SchemaName" type="hidden" value="jobtitle" /&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/form&gt; </code></pre> <p>I want to add this item to the list:</p> <pre><code> &lt;li class="dojoDndItem"&gt; &lt;input name="[X].DefinedAttributes[Y].SchemaName" type="hidden" value="itemToAdd" /&gt; &lt;/li&gt; </code></pre> <p>How can I replace X and Y (and increment this values by all following items), to have following html as result: </p> <pre><code> &lt;form action="/Config.aspx/SDKHome/SaveSections" id="SaveSections" method="post"&gt; &lt;input name="[0].SchemaName" type="hidden" value="contactSection" /&gt; &lt;ul creator="attrCreator" data-dojo-type="dojo.dnd.Source" class="section container dojoDndSource" style="list-style-type: none;"&gt; &lt;li class="dojoDndItem"&gt; &lt;input name="[0].DefinedAttributes[0].SchemaName" type="hidden" value="firstname" /&gt; &lt;/li&gt; &lt;li class="dojoDndItem"&gt; &lt;input name="[0].DefinedAttributes[1].SchemaName" type="hidden" value="itemToAdd" /&gt; &lt;/li&gt; &lt;li class="dojoDndItem"&gt; &lt;input name="[0].DefinedAttributes[2].SchemaName" type="hidden" value="jobtitle" /&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/form&gt; </code></pre>
    singulars
    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.
 

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