EDITABLE CODE:
LiveDemo:jQuery - Extension Type Selector
Note:Click the Button to Select Elements