I have now one page which has a default.css style
I have one style1.css file and another one is style2.css file.
I have one UI dropdownlist which has two options.
When I select one then apply style1.css and same thing for other.
The page should not be refresh.
How can I do this?
Given you have no specific context I would suggest looking into using jQuery toggleClass().
Say you have HTML like this where the div in this example uses a default style
style1and a button will switch out styles:In addition to
style1you have also another style defined, saystyle2likes this:To switch them when clicking on the button using the
toggleClass()method you can do this:See DEMO
You can off course trigger the toggle from anywhere, not just the button, this was only an example.