Edit this page

up.element up.element.toSelector({string|Element|jQuery})
JavaScript function

This feature has been deprecated. Use up.fragment.toTarget() instead.

Load unpoly-migrate.js to polyfill deprecated features.

Returns a CSS selector that matches the given element as good as possible.

Alias for up.fragment.toTarget().


Parameters

{string|Element|jQuery}

The element for which to create a selector.