function check() { // assertions var id0 = "page:normalPicker"; if (jQuery(Tobago.Utils.escapeClientId(id0)).filter("a").size() == 0) { LOG.error("The element with id='" + id0 + "' was not found or is not an 'a' tag!"); } // assertions var id1 = "page:readonlyPicker"; if (jQuery(Tobago.Utils.escapeClientId(id1)).filter("span").size() == 0) { LOG.error("The element with id='" + id1 + "' was not found or is not a 'span' tag!"); } // assertions var id2 = "page:disabledPicker"; if (jQuery(Tobago.Utils.escapeClientId(id2)).filter("span").size() == 0) { LOG.error("The element with id='" + id2 + "' was not found or is not a 'span' tag!"); } }