title: how to add image and text box on a div on click a button
body: <p>I want image and textbox on click. i use some code but its not proper working</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function () {
      $('.plusicondiv').on('click', function () {
          
        
          var textBox = document.createElement("input");
          $("input").addClass("textbox")
          //$("input").addClass("textbox")
          
          $('.rose').append(textBox);
  
          $('.plusicondiv').on('click', function ()
          {alert("ss")
          var img = document.createElement("IMG");
          $("img").addClass("mynasicondiv")
              img.src ="vectorimages/pluseicon.svg"  
              $('.rose').html(img);
          
          });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>