| CARVIEW |
Select Language
HTTP/2 301
date: Fri, 26 Dec 2025 13:07:55 GMT
content-type: text/html; charset=UTF-8
location: https://jqueryui.com/switchClass/
server: cloudflare
cache-control: public, max-age=14400
x-powered-by: PHP/8.2.29
vary: X-Forwarded-Proto, accept-encoding
reporting-endpoints: csp-endpoint="https://csp-report-api.openjs-foundation.workers.dev/"
content-security-policy: default-src 'self'; script-src 'self' code.jquery.com download.jqueryui.com; style-src 'self' 'unsafe-inline' code.jquery.com download.jqueryui.com; style-src-attr 'unsafe-inline'; img-src 'self' data: code.jquery.com download.jqueryui.com; connect-src 'self' typesense.jquery.com; font-src 'self' data:; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; block-all-mixed-content ; report-to csp-endpoint; report-uri https://csp-report-api.openjs-foundation.workers.dev/; form-action 'self' download.jqueryui.com;
x-redirect-by: WordPress
cf-cache-status: MISS
expires: Fri, 26 Dec 2025 17:07:55 GMT
cf-ray: 9b40cdcbcb34a9b7-BLR
HTTP/2 200
date: Fri, 26 Dec 2025 13:07:56 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
cache-control: public, max-age=14400
vary: Accept-Encoding
vary: X-Forwarded-Proto
x-powered-by: PHP/8.2.29
reporting-endpoints: csp-endpoint="https://csp-report-api.openjs-foundation.workers.dev/"
content-security-policy: default-src 'self'; script-src 'self' code.jquery.com download.jqueryui.com; style-src 'self' 'unsafe-inline' code.jquery.com download.jqueryui.com; style-src-attr 'unsafe-inline'; img-src 'self' data: code.jquery.com download.jqueryui.com; connect-src 'self' typesense.jquery.com; font-src 'self' data:; object-src 'none'; frame-ancestors 'none'; base-uri 'self'; block-all-mixed-content ; report-to csp-endpoint; report-uri https://csp-report-api.openjs-foundation.workers.dev/; form-action 'self' download.jqueryui.com;
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
content-encoding: gzip
cf-cache-status: BYPASS
expires: Fri, 26 Dec 2025 17:07:56 GMT
cf-ray: 9b40cdd09de3a9b7-BLR
Switch Class | jQuery UI
Switch Class
Add and remove class(es) to elements while animating all style changes.
Examples
Click the button above to preview the effect.
view source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
|
Want to learn more about the .switchClass() method? Check out
the API documentation.