I am very bad in programming…
I have a javascript variable
var a = 'S_QEEFCEAPU';
Then there is another html like this
<a href="#" onClick='jQuery("#youtube-player-container").tubeplayer("play","S_QEEFCEAPU")'>Video 1</a>
I want to use the variable name instead of the string S_QEEFCEAPU in tubeplayer function call. How can I do it?
You can call a javascript function for on click of your link and using the javascript variable there.,
In html
In javascript
If
ais defined out side function andglobal scope