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

    $(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");
    })
    });

How can i do this??

Thanks in advance...`:)`

blasteralfred
modify div style on .toggle - jquery
===

I have an image with id `mainimage`. It has a styling to limit width and height by setting `max-width:100%` and `max-height:100%`. But I want to remove it on the first instance of my script

    $(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");
    })
    });

How can i do this??

Thanks in advance...`:)`

blasteralfred