Question: how to call change ajax url based on response

```
$.ajax({
    url: "/url/1/1",
    dataType: "json",
    success: function (response) {
        if (response) {
            // i want to change url based on response
            //example var next = response.next    
            // den i want to call url as /url/1/next.
        }
    }
});

```

Answer: 
You can use the [Javascript Executor](http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/JavascriptExecutor.html)

```
WebDriver driver;
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("document.querySelector('<CSSLOCATOR>').setAttribute('width', <WIDTH>)");

```

where you fill in `<CSSLOCATOR>` and `<WIDTH>` with what you need.
Answer to my question is simple usage of jquery

$(selector).width(value) ;

Example usage
String aScript = "jQuery(\"" + CSS\_TABLE\_HEADER\_BY\_COL\_NAME + "\").width(%s)";

```
jse.executeScript(aScript );

```

Hope this should resolve most people of increasing column width in selenium.