You need to sign in to do that
Don't have an account?
pradeep kumar yadav
Alert gives undefined in Visualforce Page
I want div ID when click on any div on page.
Getting Document ID by onclick JavaScript
document.onclick=function(evt){ var target = evt.target; alert(target.id); }
Alert gives undefined in Visualforce Page
I want div ID when click on any div on page.
I got the document id but on second time click, how can i get the on first click.
All Answers
To do this you can just add
onClick="fuc(this)" attribute in your page and in script just do:- Thanks
Ajay
I got the document id but on second time click, how can i get the on first click.