I need to know the screen size in jquery or javascript and I need this value is printed on a php variable that will determine whether or not an item is displayed.
var width = $(window).width();
if (width <= 1024) {
///// How can I set a variable here and use it with php?
}
Thanks!