title: CSS is not working on the JavaScript code, which adds a text field on click
body: <p>I am trying to add a <code>text field</code> when user clicks the 'add' sign. The field is added, but the CSS is not working.</p>
  
  <p>Here is the JavaScript I am using-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;input type="button" onclick="addInput()"/&gt;
  
  &lt;span id="responce"&gt;&lt;/span&gt;
  &lt;script&gt;
  var countBox =1;
  var boxName = 0;
  function addInput()
  {
       var boxName="textBox"+countBox; 
  document.getElementById('responce').innerHTML+='&lt;br/&gt;&lt;input type="text" id="'+boxName+'" class="search" value="'+boxName+'" "  /&gt;&lt;br/&gt;'
       countBox += 1;
  }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is the CSS which i want to add on the <code>text field</code> that appears-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.search{
              border: 1px solid #c4c4c4; 
              height: 15px; 
              font-size: 13px; 
              padding: 4px 4px 4px 4px; 
              border-radius: 4px; 
              -moz-border-radius: 4px; 
              -webkit-border-radius: 4px; 
              box-shadow: 0px 0px 8px #d9d9d9; 
              -moz-box-shadow: 0px 0px 8px #d9d9d9; 
              -webkit-box-shadow: 0px 0px 8px #d9d9d9; 
          }
          .search:focus{
              outline: none; 
              border: 1px solid #7bc1f7; 
              box-shadow: 0px 0px 8px #7bc1f7; 
              -moz-box-shadow: 0px 0px 8px #7bc1f7; 
              -webkit-box-shadow: 0px 0px 8px #7bc1f7; 
          }</code></pre>
  </div>
  </div>
  </p>