w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Utilities
Overview
Properties
Methods
Other
Events
Plugins
w2utils.escapeId
Escapes id for the use in jQuery.
escapeId(id)
id
string
, id to escape
If you use jQuery to want to use "!"#$%&\'()*+,./:;<=>?@[\]^`{|}~ " in element ids you need to escape them.
var a = w2utils.escapeId('id.with.levels and spaces'); console.log(a);
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus