jQuery generated content not seen by jQuery
Posted: Mon Jan 28, 2008 2:14 pm
Ok, so I am no jQuery expert but I am profficient enough to hang myself. Which I have done, and now I need a jQuery pro to assist me.
I have a document I am developing in which I want to take the value of the title attribute of an <area> tag and make content out of it when the tag is mousedover. That is working without a glitch. The problem I am facing is that I want users to be able to take the generated content from the mouseover and close the content if they choose.
So basically the process is "roll over an element and display a div somewhere else on the screen. Append a link to the generated div that allows for the clearing of div when clicked."
My challenge is that it seems that jQuery is not recognizing the content it generates outside of the function that generated it. I am not all that sure how to handle scope in JS, so any help would be much appreciated in figuring this out.
Just so I am clear, I can make the content show up and all of that. I just cannot, for the life of me, figure out how to tell jQuery to take an element that it has created and, when clicked, clear the div in which that created content resides.
I have a document I am developing in which I want to take the value of the title attribute of an <area> tag and make content out of it when the tag is mousedover. That is working without a glitch. The problem I am facing is that I want users to be able to take the generated content from the mouseover and close the content if they choose.
So basically the process is "roll over an element and display a div somewhere else on the screen. Append a link to the generated div that allows for the clearing of div when clicked."
My challenge is that it seems that jQuery is not recognizing the content it generates outside of the function that generated it. I am not all that sure how to handle scope in JS, so any help would be much appreciated in figuring this out.
Just so I am clear, I can make the content show up and all of that. I just cannot, for the life of me, figure out how to tell jQuery to take an element that it has created and, when clicked, clear the div in which that created content resides.