Skip to content

benbarnett/jquery-get-enhanced

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

jquery.get-enhanced plugin

Extend $.get() to add selector support. Usage is identical, except you can add a selector to get a page fragment, like you can with $.load.

Tested with jQuery 1.3.2+

Demo

Please refer to demo site.

What it does

The plugin simply adds selector support to enable $.get'ing of page fragments, to save you having to slice the response yourself. Super lightweight and non-intrusive, it will just pass back to the original $.get() method once its work is done.

It means that you can 'do stuff' with the content before appending it to the DOM:

e.g. $('.target').html(data.replace(/cool/ig, 'AMAZING'));

Usage

Usage is identical to the jQuery get() function

Changelog

0.10 (09/03/2011):

  • Plugin added to Github.

Credits

About

Drop-in plugin to add selector support to $.get() calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published