Skip to content

Commit 1e725eb

Browse files
authored
fix readme lists
1 parent dd17b8a commit 1e725eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This uses PHP, but there is also a [pure HTML version](https://npatullo.w3.uvm.e
1111
- `Select None`
1212

1313
`Select None` works to **deselect radio buttons**
14+
**This is for mutually exclusive choices, but the entire is question optional & you want** ***`no response`*** **to be valid**
1415
The other 2 functions *can* be used on radio buttons, but **aren't effective** since radio buttons are mutually exclusive & results in the last radio button being selected
1516
It doesn't break anything, just doesn't work as intended
1617

@@ -37,14 +38,14 @@ This says:
3738
3. Only `invert()` the checkboxes in the group `chkBoxes[]`
3839
- The only difference for `selectAll()` and `selectNone()` is the name of the function to call
3940
- Buttons are only linked to checkbox groups by the parameter they send to the function so can technically appear anywhere on the page, but should be close to their linked HTML elements for ease of use
40-
-
41+
-  
4142
- jQuery functions set the **property** of an input element using `item.prop("checked", true);` because `item.attr('checked','checked');` doesn't work
4243
`attr` updates the HTML & you can see it happen in realtime using *Inspect Element*, but the actual page doesn't change
4344
- `selectAll` simply adds `element.prop("checked", true);` to every element in a group regardless of its current state
4445
This guarantees all items in a group are checked & it doesn't hurt to set the property to `true` if it's already `true`
4546
- `selectNone` is the opposite & simply sets the `property` to `false`
4647
- The `invert` function checks if an input is checked (true/false) & sets the new property to the opposite of its previous state by negating `true` or `false`
47-
-
48+
-  
4849
- **USE `selectNone` ON RADIO BUTTONS TO "DE-SELECT" THE RADIO BUTTON ALTOGETHER, BUT `invert` & `selectNone` WON'T WORK FOR RADIO BUTTONS***
4950

5051
###PHP Version Specific
@@ -68,4 +69,4 @@ I cobbled together my own `invert()` function based on various sources because n
6869
- [CSS-Tricks: A jQuery hasAttr() Equivalent](https://css-tricks.com/snippets/jquery/make-an-jquery-hasattr/) testing if an an element has an attribute
6970
- [Stack Overflow: jQuery checkbox event handling](http://stackoverflow.com/a/29367737) helped when finding how to call functions
7071
-  
71-
- [HTML Multi checkbox set - the correct way to group checkboxes | wasted potential](http://www.wastedpotential.com/html-multi-checkbox-set-the-correct-way-to-group-checkboxes/)
72+
- [HTML Multi checkbox set - the correct way to group checkboxes | wasted potential](http://www.wastedpotential.com/html-multi-checkbox-set-the-correct-way-to-group-checkboxes/)

0 commit comments

Comments
 (0)