Recent Posts

JavaScript Conditionals: if, else if, else and switch
Choose conditional branches with if and switch, understand strict matching and fall-through, and validate input before comparing numbers. Includes a complete browser example.

jQuery .add(): Combine Element Selections
Combine selections without changing the original collection, and distinguish selecting elements from inserting them into the document.

jQuery .prepend(): Insert Content as the First Child
Add content at the beginning of an element and understand how existing nodes and multiple destinations affect the result.

JavaScript Number(): Convert Strings and Validate Input
Convert text to numbers while rejecting blank and nonfinite input. Compare Number(), parseInt() and parseFloat(), and account for accepted formats and precision limits.

jQuery .append(): Insert Content as the Last Child
Add content at the end of an element, compare insertion with moving or cloning nodes, and handle user input as plain text.

JavaScript String(): Convert Numbers to Strings
Learn how String() converts values, why string concatenation differs from addition, and when null handling or JSON serialization is needed. Compare primitive strings with new String() objects.

jQuery :contains(): Match Elements by Text Content
Explore case-sensitive substring matching, descendant text, and a safer way to handle dynamic search strings without constructing selectors.

jQuery :button Selector: Which Elements Does It Match?
Check how :button treats button elements, ordinary button inputs, and submit or reset inputs, with a working selection example.

HTML Tutorial / Add Placeholder Text to Form Fields
Learn how to add placeholder hints to HTML input and textarea fields without confusing them with labels or initial values. Includes a complete form example, required-field checks, and an explanation of empty values in submitted data.

HTML Tutorial / Explain Forms with fieldset, legend, and autocomplete
Group questions with fieldset, legend, and distinct radio names, and describe input purposes with autocomplete. Test two independent groups and compare common autofill tokens.