|
1 | | -# jquery-radio |
| 1 | +# jquery-get-outer-html |
2 | 2 |
|
3 | | -<a href="http://apostrophenow.org/"><img src="https://raw.github.com/punkave/jquery-radio/master/logos/logo-box-madefor.png" align="right" /></a> |
| 3 | +<a href="http://apostrophenow.org/"><img src="https://raw.github.com/punkave/jquery-getOuterHTML/master/logos/logo-box-madefor.png" align="right" /></a> |
4 | 4 |
|
5 | | -`jquery-radio` makes it easy to get or set the current value of a group of radio buttons, filling a gap in jQuery's `$.val()`. |
| 5 | +`jquery-get-outer-html` provides a simple way to get the "outer HTML" for an element, including the element itself, even in browsers that do not support that natively. Unlike other plugins it does not include a setter for outerHTML, so it is best suited to those who do not need the extra code for a setter in their project. |
6 | 6 |
|
7 | 7 | ## How to Use |
8 | 8 |
|
9 | | -Select *all* of the buttons in the group and call `.radio()`: |
10 | | - |
11 | | - // Check the box with value="5" |
12 | | - $('input.my-radio-group').radio(5); |
13 | | - // Get the value of the checked box |
14 | | - var value = $('input.my-radio-group').radio(); |
15 | | - |
16 | | -This example assumes you have several radio buttons that all have the `.my-radio-group` class. |
| 9 | + $('.my-element').getOuterHTML(); |
17 | 10 |
|
18 | 11 | ### Requirements |
19 | 12 |
|
20 | | -You need jQuery, of course. `jquery-radio` is actively supported with jQuery 1.9 and 2.0 but should work fine with older versions. |
| 13 | +You need jQuery, of course. `jquery-getOuterHTML` is actively supported with jQuery 1.9 and 2.0 but should work fine with older versions. |
21 | 14 |
|
22 | 15 | ## About P'unk Avenue and Apostrophe |
23 | 16 |
|
24 | | -`jquery-radio` was created at [P'unk Avenue](http://punkave.com) for use in Apostrophe, an open-source content management system built on node.js. If you like `jquery-radio` you should definitely [check out apostrophenow.org](http://apostrophenow.org). Also be sure to visit us on [github](http://github.com/punkave). |
| 17 | +`jquery-get-outer-html` was created at [P'unk Avenue](http://punkave.com) for use in Apostrophe, an open-source content management system built on node.js. If you like `jquery-get-outer-html` you should definitely [check out apostrophenow.org](http://apostrophenow.org). Also be sure to visit us on [github](http://github.com/punkave). |
25 | 18 |
|
26 | 19 | ## Support |
27 | 20 |
|
28 | | -Feel free to open issues on [github](http://github.com/punkave/jquery-radio). |
| 21 | +Feel free to open issues on [github](http://github.com/punkave/jquery-get-outer-html). |
29 | 22 |
|
30 | | -<a href="http://punkave.com/"><img src="https://raw.github.com/punkave/jquery-radio/master/logos/logo-box-builtby.png" /></a> |
| 23 | +<a href="http://punkave.com/"><img src="https://raw.github.com/punkave/jquery-get-outer-html/master/logos/logo-box-builtby.png" /></a> |
31 | 24 |
|
0 commit comments