.select()
Syntax and Description
.select(handler)
.select()
handler
is a function to execute each time the event is triggered.
Return value is the jQuery object, for chaining purposes.
select method binds an event handler to the
select
JavaScript event, or trigger
that event on an element.
.select(handler)
is a shortcut for
.bind('select', handler)
.
.select()
is a shortcut for .trigger('select')
.
We can trigger the event manually when another element is clicked.
$('#other').click(function() {
$('#target').select();
});
Javascript Tutorial Event
Event
Event attributes
event.keycode
event.clientX/clientY
pageX/pageY
Cancel event
Event target
bind
.blur()
.change()
.click()
.error()
.dblclick()
.delegate()
.die()
.focus()
.hover()
.keydown()
.keypress()
.keyup()
.live()
.load()
.mousedown()
.mouseenter()
.mouseleave()
.mousemove()
.mouseover()
.mouseout()
.mouseup()
.off()
.on()
.one()
.ready()
.resize()
.scroll()
.toggle()
.trigger()
.triggerHandler()
.unbind()
.undelegate()
.unload()
Event
Event attributes
event.keycode
event.clientX/clientY
pageX/pageY
Cancel event
Event target
bind
.blur()
.change()
.click()
.error()
.dblclick()
.delegate()
.die()
.focus()
.hover()
.keydown()
.keypress()
.keyup()
.live()
.load()
.mousedown()
.mouseenter()
.mouseleave()
.mousemove()
.mouseover()
.mouseout()
.mouseup()
.off()
.on()
.one()
.ready()
.resize()
.scroll()
.select()
.submit().toggle()
.trigger()
.triggerHandler()
.unbind()
.undelegate()
.unload()