PDA

View Full Version : How to make div name dynamic?



bsn56
23 Jun 2009, 05:04 PM
I'm using an Iframe that enclose entire webpages with jquery and I am trying to display the the title dynamically at the top of the iframe using the <div> tag.

<div id="dialog" title="title">
<iframe id="myFrame" src=""/>
</div>


right now it displays what i've written in the dialog function "title" at the top of the iframe. Dialog is a function that displays at the top of the iframe what i set it statically. however, the alternative display is "title". Setting a direct dynamic variable in the title field does not work. How can i get around this?