I am trying to toggle between css column layout and a normal layout of a div element with id 'article', but the jQuery is not working... the whole thing just disappears. can anyone tell me how to remove the css properties with jQuery in the toggle function ? I read that you can remove properties like have it below... but it is not working... can anyone please tell me the right way to do it ?
function changeview(orientation){
$('#article').toggle(function(){
$('#article').css('-webkit-column-width' : '768px', 'height' : '885px');
},function(){
$('#article').css('-webkit-column-width' : '', 'height' : '');
});
}
''. If you want to setheightto the default, set it toauto. Same with-webkit-column-width, although you can use justcolumn-widthfor that and it will work in modern browsers.toggleis deprecated.