title: Delete a div or span with a id=".xxx"
body: <p>I am unable to delete a div with an id with a period or an asterix.</p>
  
  <pre><code>&lt;div id="*xxx."&gt;&lt;/div&gt;
  &lt;div id=".xxx*"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I have the jquery code, which deletes the <code>&lt;div id="xxx"&gt;&lt;/div&gt;</code> but not the above.  Not looking for the jQuery code, but does it need a forward slash?</p>
  
  <p>----req by anurag--------</p>
  
  <pre><code>// JavaScript
  
  $('.s').click(function (e) {
      var wd_del = (e.target.id);
      var yy = wd_del.substr(1, 100);
  
      $(document.getElementById("" + yy)).remove();
      $(document.getElementById("s" + yy)).remove();
  });
  
  // HTML
  
  &lt;div id="s_t"&gt;
      &lt;? do { $w1=$ row_ws1[ 'wd']; ?&gt;
          &lt;div id="&lt;? echo $w1 ?&gt;" class="ul_shh" style="cursor:pointer;"&gt;
              &lt;span id="s&lt;? echo $w1 ?&gt;" class="s"&gt;
                  x
              &lt;/span&gt;
              &lt;? echo $w1; ?&gt;
          &lt;/div&gt;
      &lt;? } while ($row_ws1=m ysql_fetch_assoc($ws1)); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks
  Jean</p>