Suppose I have a simple XHTML document that uses a custom namespace for attributes:
This works in some conditions:
$("div[custom\\:attr]")
However, for a more advanced method, see this XML Namespace jQuery plug-in