title: How can I replace text within a label with javascript that has no name or id?
body: <p>I'm using datatables jquery plugin for beautifying my tables. I'm trying to stylize the search box to look more like this</p>
  
  <p><img src="https://i.stack.imgur.com/EWa5j.jpg" alt="CSS3 search box"></p>
  
  <p>However the <strong>javascript generated</strong> code for the current search box in datatables looks something like this</p>
  
  <pre><code>&lt;div class="dataTables_filter" id="countstable_filter"&gt;
      &lt;label&gt;Search: 
            &lt;input type="text" aria-controls="countstable" placeholder="Search"&gt;
      &lt;/label&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>I was able to get javascript to add a placeholder attribute to the search box. But I can't figure out how to remove the Search: text. I have seen a few solutions on google, but they required the label to have an id which I don't have here.</p>