I need to increase or decrease the width of `<div>`, when the browser resizes, using jquery. here is my code.

```
if ($(window).width() > 990 && $(window).width() < 1190) {
    $("#greybor").width(268)
    $("#srchclnt").width("245")
} else if ($(window).width() > 1200 && $(window).width() < 1300) {
    $("#greybor").width(400)
} else
    $(window).width() > 1350 {
        $("#greybor").width(580)
} 

```

It's taking the last entered width, when I am resizing the browser, the `<div>` width doesn't decrease, it remains the last same.

I even tried by `addClass` and `removeClass` methods but still, it's the same thing.
thanks & regards.