Share via


ReplaceClass (client-side)

Use this routine to replace one class with another class in the space-delimited list of classes associated with the className attribute of a specific HTML element.

Definition

ReplaceClass(elItem,

             sOldClass,

             sNewClass)

Parameters

elItem

The HTML element for which a new class will replace an existing class.

sOldClass

A string containing the name of the class being replaced in the specified HTML element.

sNewClass

A string containing the name of the class to replace the class specified by the sOldClass parameter.

Return Value

None.

Remarks

The new class replaces the specified old class without affecting any other existing classes.

This routine is available in the include file ActionPageUtil.asp.

See Also

Client-Side Routines

AddClass (client-side)

bHasClass (client-side)

RemoveClass (client-side)

Server-Side Routines


All rights reserved.