I have a <div>.I am trying to append another  which contains a  inside.I am trying to call the input tag by id, but am not getting this element! I tried many questions in the stack, but I can't solve this.
Here is the HTML code
<div id="newContDiv" class="form-group">
  <div id="newDiv"></div>
 </div>
jquery for appending div and input tag
 var v = "<div id = 'coverDiv'><div id='appDiv'><div><input id='panNumId' 
      type='text' name='panImg1' placeholder='Enter your Pancard number'/>
      </div></div>";
  $('#newDiv').append(v);
And I am calling the element as
$(document).ready(function(){
       ('#panNumId').click(function () {
        alert("clicked");
      });
});
 
     
     
    