I found this topic Hide A DIV if screen is narrower than 1024px and I want to get something similar with quoted code below, a code for this kind of response: to hide one div ( id="krug_wide" ) if a window is narrower then 1280px and to replace that hidden div with another one ( id="krug_small" ).
I also found out the page http://www.fryed.co.uk/labs/resize_div_on_window_resize connected with mentioned topic. I still can not figure out the right and appropriate syntax but I'm sure it is "a piece of cake" for you.
Thank you in advance.
$(document).ready(function () {
var screen = $(window)
if (screen.width < 1024) {
$("#krug_wide").hide();
}
else {
$("#floatdiv").show();
}
});