EDITABLE CODE:
LiveDemo:jQuery - Check Content of an Element using contents() Method
Note:The content method is usually used with the element iframe.