I\'ve realized that Chrome, it seems, will not allow me to hide in a
. Firefox will.
I need to hide the
Ryan P's answer should be changed to:
jQuery.fn.toggleOption = function (show) {
$(this).toggle(show);
if (show) {
if ($(this).parent('span.toggleOption').length)
$(this).unwrap();
} else {
**if ($(this).parent('span.toggleOption').length==0)**
$(this).wrap('');
}
};
Otherwise it gets wrapped in too many tags