modify div style on .toggle - jquery
<p>I have an image with id <code>mainimage</code>. It has a styling to limit width and height by setting <code>max-width:100%</code> and <code>max-height:100%</code>. But I want to remove it on the first instance of my script</p>

<pre><code>$(document).ready( function() {
var hjkl = $("#mainimage").height();
var hjklw = $("#mainimage").width();
$('#logo').toggle(
function() {
    $('#mainimage').animate({"width": 1600, "height": 1200}, "fast");
}, function() {
    $('#mainimage').animate({"width": hjklw, "height": hjkl}, "fast");
})
});
</code></pre>

<p>How can i do this??</p>

<p>Thanks in advance...<code>:)</code></p>

<p>blasteralfred</p>
