I was trying something with javascript and media queries. I want to change some elements with javascript, like switching elements etc. When the browser/device with is 320px I want to do something. I came up with the following, but this doesn't work.\[code\]if (screen.width < 320){ $('input[type="text"]').insertAfter('label'); $('input[type="text"]').eq(1).remove(); $('input[type="text"]').eq(2).remove();}\[/code\]What does I do wrong?When I would like to do this for some changes of my css it looks like this:\[code\]@media only screen and (max-width : 400px) { }\[/code\]And the example above I want to convert to javascript..Hope somebody can help me out