I am trying to find, if I can pass a value on the title attribute of a label element using Javascript?
title
label
I have tried the following Javascrip
You can't inline javascript like this.
What you may do is
1) give an id to your label and put this at the end of your body
Demonstration
2) if you really want to inline the call, write this at the point where you want your label :
(this is really not recommended)