<input id="myid" name="myname"> .... var pElem = document.getElementById('myid'); var jElem =$('#myid');