unwrap... doesn't seem to work for me.
I am passing the name of a div when clicked to a function. This function wraps the div around another div and is then meant to unwrap the div... however the unwrap does not work...
I know htis is a pointless exercise, but please humour me. regards J
-
$('.slideDownBtn').click(function(){
wrapFunction('.testDiv');})
-
function wrapFunction(divToSlide){
divToSlide=$(divToSlide);
divToSlide.wrap('<div class="jwrapper"/>');
divToSlide.unwrap();
}