Note that there are some explanatory texts on larger screens.

plurals
  1. POConvert 3 li & ul tags data from one div id to other div id with change of text to those 3 converted tags
    primarykey
    data
    text
    <p>This is my Original code below:</p> <pre><code>&lt;div id="cp_listed"&gt; &lt;span&gt;&lt;b&gt;Title&lt;/b&gt;&lt;/span&gt; &lt;/div&gt; &lt;div class="bigright"&gt; &lt;ul&gt; &lt;li id="cp_you_are" class=""&gt;&lt;span&gt;You are:&lt;/span&gt; AAAA&lt;/li&gt; &lt;li id="cp_dept" class=""&gt;&lt;span&gt;Dept:&lt;/span&gt; XXXX&lt;/li&gt; &lt;li id="cp_id_593" class=""&gt;&lt;span&gt;Section:&lt;/span&gt; BBBB&lt;/li&gt; &lt;li id="cp_id_999" class=""&gt;&lt;span&gt;Area:&lt;/span&gt; CCCC&lt;/li&gt; &lt;li id="cp_role" class=""&gt;&lt;span&gt;Role:&lt;/span&gt; YYYY&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p><em><strong>Original Output</em></strong></p> <p><strong>Title</strong></p> <ul> <li>You are: AAAA</li> <li>Dept: XXXX</li> <li>Section: BBBB</li> <li>Area: CCCC</li> <li>Role: YYYY</li> </ul> <p><em><strong>Expected Code</em></strong></p> <pre><code>&lt;div id="cp_listed"&gt; &lt;span&gt;&lt;b&gt;Title&lt;/b&gt;&lt;/span&gt; &lt;div id="cp_you_are"&gt; &lt;span&gt;&lt;b&gt;Posted by:&lt;/b&gt;&lt;/span&gt; AAAA &lt;/div&gt; &lt;div id="cp_id_593"&gt; &lt;span&gt;&lt;b&gt;Posted by:&lt;/b&gt;&lt;/span&gt; BBBB &lt;/div&gt; &lt;div id="cp_id_999"&gt; &lt;span&gt;&lt;b&gt;Posted by:&lt;/b&gt;&lt;/span&gt; CCCC &lt;/div&gt; &lt;/div&gt; &lt;div class="bigright"&gt; &lt;ul&gt; &lt;li id="cp_dept" class=""&gt;&lt;span&gt;Dept:&lt;/span&gt; XXXX&lt;/li&gt; &lt;li id="cp_role" class=""&gt;&lt;span&gt;Role:&lt;/span&gt; YYYY&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p><em><strong>Expected Output</em></strong></p> <p><strong>Title</strong> <strong>Posted by:</strong> AAAA <strong>Posted by:</strong> BBBB <strong>Posted by:</strong> CCCC</p> <ul> <li>Dept: XXXX</li> <li>Role: YYYY</li> </ul> <p>This is what i'm expecting to get. I want to extract or remove li &amp; ul tags of <strong>#cp_you_are</strong>, <strong>#cp_id_593</strong> &amp; <strong>#cp_id_999</strong> id's &amp; shift those id's data into <strong>#cp_listed</strong> div tag by converting li &amp; ul tags into div tags of those 3 id tags inside to the <strong>#cp_listed</strong> div tag as shown in Expected Code &amp; Output.</p> <p>Also its text must be changed from <strong>You are,Section &amp; Area</strong> to <strong>Posted by</strong> to all 3 as shown in Expected Output</p> <p>Anyone plz helpme.. </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.
    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