Welcome Guest, Not a member yet? Register   Sign In
Applying jQuery to Dynamically Created Elements
#11

[eluser]Fielder[/eluser]
That's jQuery code right.. that goes into my jquery.js file? Remember, it's my jQuery that is not acting(both the hide and slideToggle) on the dynamically created <div>. Or are you telling me to throw that into my default.css? If so, I presume I could use the slideToggle as well.


I'll play around with it this evening when I get home. Thanks for the input.
#12

[eluser]Jonny Noog[/eluser]
[quote author="slowgary" date="1245666751"]!!! LOL. I've been writing CSS for YEARS!!! Yeah, that was pretty stupid of me. I need to get some sleep.[/quote]

That's an understandable mistake to make though, because there is visibility:hidden; as well as display:none; and I get them confused sometimes.

visibility:hidden; hides the element, but it still takes up space in the layout.

display:none; removes the element completely from the document. It does not take up any space, even though the HTML for it is still in the source code.




Theme © iAndrew 2016 - Forum software by © MyBB