![]() |
Applying jQuery to Dynamically Created Elements - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Applying jQuery to Dynamically Created Elements (/showthread.php?tid=19874) Pages:
1
2
|
Applying jQuery to Dynamically Created Elements - El Forum - 06-22-2009 [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. Applying jQuery to Dynamically Created Elements - El Forum - 06-22-2009 [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. |