how to use sizzle.js separate
The Sizzle()
function returns an array of matched elements. So if you know there'll be exactly one matching element (which there should be if you're selecting by id) try:
alert(Sizzle("#test")[0].innerHTML);
The Sizzle()
function returns an array of matched elements. So if you know there'll be exactly one matching element (which there should be if you're selecting by id) try:
alert(Sizzle("#test")[0].innerHTML);