How can I remove the properties that are changed from the css with jquery, this is my code:
$("#box_archivos").click(function(){
$("#box_datos").css({'height':'270px'});
$("#box_archivos").css({'height':'90%'});
$("#box_textarea").css({'display':'none'});
});
what I want is when I click on #box_data the css added with jquery to be removed and return to normal css. Thank you
You can do the same by passing it as a value of
String
empty""
. In this way it eliminates the style that is addedinline
to it and picks up thecomputed-style
Translated from .css()
Snippet example: