I'm having trouble switching between a CSS column layout and a normal layout for a div element with the ID 'article'. The jQuery script I wrote doesn't seem to work properly, as the entire thing disappears. Can anyone advise me on how to remove the CSS properties using jQuery in the toggle function? I've come across examples like the one below, but they don't seem to be effective. Can someone please guide me on the correct approach?
function changeview(orientation){
$('#article').toggle(function(){
$('#article').css('-webkit-column-width', '768px', 'height', '885px');
},function(){
$('#article').css('-webkit-column-width', '', 'height', '');
});
}