Hi I have one questions For example :
$("#menu").click(function(){
$("#left_panel, #main_footer").fadeToggle(200);
$("#input_content").css({width:"100%"});
});
And I want after this function css get default property
Hi I have one questions For example :
$("#menu").click(function(){
$("#left_panel, #main_footer").fadeToggle(200);
$("#input_content").css({width:"100%"});
});
And I want after this function css get default property
The simpliest way is to set the style to something useless. Then the browser won't interpret it and fall back to the rules you've defined in your CSS. The standard way would be setting it to an empty value:
$("#input_content").css("width","");
If you want to fully reset it to its default value defined by the browsers stylesheet, you may try to set the value to "initial":
$("#input_content").css("width","initial");
Or you set the default value yourself, which is "auto" (See W3C).
$("#menu") selector get back default css valueif($("#input_content")[0].style.width == "") { Set to 100% } else { reset to default (see my answer) }