...very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection) the browser will not scroll the textarea to this selection.

$textarea.blur(); $textarea.val(textBeforePosition); $textarea.focus(); $textarea.val(text); $textarea.setSelection(position, position); // assumes that you use jquery-fieldselection.js } I'm sorry! Also see Scroll a textarea to a given line with jQuery...

You know that you can use jQuery's text() to get an element's contents without any tags.

Every time you call $(...) jQuery will create a new object. Because of this, comparing two jQuery collections with == will never...

With "attaching an event handler once" you possibly mean one of these two things: Register a function for an event...

jQuery comes with .animate() that lets you transition some CSS selectors: function floatIn($element) { $element.css({ 'opacity': 0, 'margin-top': 200px...

Use this if you want to show or hide part of a form if certain options are selected or boxes...

jquery.com

Since jQuery 3 saw it's first release candidate today, the links has a list of (breaking) changes.

You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }

alfajango.com

The difference between .bind(), .live(), and .delegate() is not always apparent. Having a clear understanding of all the differences, though...

vadikom.com

With this plugin, you can create a scalable tooltip by just using a single background image for the tooltip body...

When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

makandra dev
plugins.jquery.com

SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...

In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...

jQuery's find looks in the element's descendants. It will never return the current element itself, even if the...

This snippet makes links that refer to an anchor (like "...

...") scroll softly to it.\ In this example we only do...

harvesthq.github.com

Chosen is a JavaScript plugin that makes long, unwieldy select boxes much more user-friendly. It is currently available in...

github.com

jQuery plugin to register callback functions to keyboard shortkuts. Keyboard events in vanilla Javascripts are super-painful to work with...

code.google.com

Flot is a pure Javascript plotting library for jQuery. It produces graphical plots of arbitrary datasets on-the-fly client...

makandra dev
documentcloud.github.com

Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would...

thrivingkings.com

An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...

ckeditor.com

Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...

Setting the colorbox opacity by hash parameter when initializing doesn't work the way like the documentation tells you.

alfajango.com

There is a problem with AJAX response handling for Rails 3 remote links and forms in Internet Explorer. This problem...