dasherize :: String

dasherize() -> string Replaces every instance of the underscore character ("_") by a dash ("-").

Example

'border_bottom_width'.dasherize();

// -> 'border-bottom-width'

Note

Used in conjunction with underscore(), dasherize() converts a DOM style into its CSS equivalent.

'borderBottomWidth'.underscore().dasherize();

// -> 'border-bottom-width'

Prototype API 1.5.0 - prototypejs.org