Posts by Vanda P • 13 points
1 post
-
1
votes1
answer39
viewsQ: Use Parent with input -- jquery
I am trying to recover the id of a parent div of an input <div id="parentDiv"> <input type="text" onfocus="mostra(this)"> </div> Using the onFocus function, it returns me Undefined…