Pass a global javascript array value into a HTML Tag

Posted by tonsils on Stack Overflow See other posts from Stack Overflow or by tonsils
Published on 2010-06-02T08:02:21Z Indexed on 2010/06/02 8:13 UTC
Read the original article Hit count: 226

Filed under:
|
|

Hi,

Just wondering if it's possible to pass a global javascript array value into a html tag, specifically inside a img (title) tag?

Basically want to know if I can do this:

<img src="_info.gif" height="26" width="37" title=myArray[5]/>

If so, how and if not, can people possibly provide other suggestions.

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery