![]() |
Question for HTML Guru's
How-do! I have a question.
I want to have an a href with a title that is a variable from a javascript. For example <a href = "something.html" title="Variable number">Click</a> Here's my code: <a href="something.html" data-toggle="tooltip" title=" <script> a=<!--per_price_grp-->; b=10; c=a/b; document.write("$" +c.toFixed(2)); </script> " data-placement="top"> But instead of showing the value of the script, it's showing most of the code. Suggestions? |
Something like:
Code:
<a id=mylink href="something.html" data-toggle="tooltip" title="" data-placement="top">Something</a> |
^^^ 5 stars and a :thumbsup for quick reply!
|
Quote:
|
Quote:
:thumbsup |
Quote:
|
Quote:
8chars . |
| All times are GMT -7. The time now is 06:54 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123