Changes between Initial Version and Version 1 of Ticket #889
- Timestamp:
- Jan 29, 2007, 2:35:14 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #889 – Description
initial v1 1 1 There are cases where you want to affect two sets of elements, matching and not matching. here is an example: 2 2 3 {{{ 3 4 <label><input type='radio' name='onOff' value='on'></input>on</label> 4 5 <label><input type='radio' name='onOff' value='off'></input>off</label> 6 }}} 5 7 6 8 calling function either, for lack of a better name. This corresponds to ? : syntax, is there a name for that? 7 9 10 {{{ 8 11 $('#onOff').either( 9 12 '[value=on]', … … 17 20 } 18 21 ); 22 }}} 19 23 20 24 Anyway, if this sounds interesting to anyone else I'd be happy to send code, or maybe add it as a plugin.