How can jQuery deferred be used?

The best use case I can think of is in caching AJAX responses. Here’s a modified example from Rebecca Murphey’s intro post on the topic: Basically, if the value has already been requested once before it’s returned immediately from the cache. Otherwise, an AJAX request fetches the data and adds it to the cache. The $.when/.then doesn’t care … Read more

jQuery get textarea text

Why would you want to convert key strokes to text? Add a button that sends the text inside the textarea to the server when clicked. You can get the text using the value attribute as the poster before has pointed out, or using jQuery’s API: