selector Returns: String version removed: 1.9
Description: A selector representing selector originally passed to jQuery().
-
version added: 1.3selector
Should be used in conjunction with context to determine the exact query used.
The .live()
method for binding event handlers uses this property to determine how to perform its searches. Plug-ins which perform similar tasks may also find the property useful. This property contains a string representing the matched set of elements, but if DOM traversal methods have been called on the object, the string may not be a valid jQuery selector expression. For this reason, the value of .selector
is generally most useful immediately following the original creation of the object. Consequently, the .live()
method should only be used in this scenario.