Wednesday, September 27, 2017

Overview of some of the most commonly used selectors

Below is a brief overview of some of the most commonly used selectors.

$("*") - Wildcard: selects every element on the page.
$(this) - Current: selects the current element being operated on within a function.
$("p") - Tag: selects every instance of the <p> tag.
$(".example") - Class: selects every element that has the example class applied to it.
$("#example") - Id: selects a single instance of the unique example id.
$("[type='text']") - Attribute: selects any element with text applied to the type attribute.
$("p:first-of-type") - Pseudo Element: selects the first <p>.

Tuesday, September 26, 2017

Search results always "Search All"


When you search all, you will see the records on the left hand side. Each record type has a little pin on the right hand side. If the user clicks that those objects will always be checked in the regular search. That way they should not need to click search all to find those records when searching.