I would like to change the variable x
to 3 every time the window gets resized.
$(document).ready(function ()
{
var x = $("#display_piece_big_frame").offset().left;
$(window).bind("resize", function()
{
x = 300;
});
});
Note: x
cannot be put outside the document.ready
function because it uses jQuery.