Posted by Geert Van Damme on June 19, 2012
When adding an accordion inside tabs, I noticed that the accordion did not expand as expected. After some trial-and-error, I discovered that you need to create the accordion first, and then the tabs :
This fixed the problem for me.
Posted by Geert Van Damme on August 2, 2010
I just noticed something weird when using JQuery ajax ($.get and $.post) to update the content of a div. I use the html function of JQuery to put the content inside the div like this :
Everything worked fine with following div :
But, as I work with xml a lot, I am used to writing empty tags as such :
Suddenly, the div would not get the content from the html function anymore! My only possible explanation is that the
<div id="someId"></div> implicitly contains an empty text node (which will be replaced with the html), while the
<div id="someId"/> does not have any content at all.
Posted by Geert Van Damme on July 24, 2010
A few times already I found myself doing al sorts of special stuff to show or hide certain html elements (mostly input fields) depending on the selected value of a dropdown. After searching the web a bit, I found the following link which makes this really easy and manageable :
It uses JQuery but it should be usable using other libraries as well… Have fun hiding !