scribu/wp-scb-framework — Issue #7: Forms: 'wrap' and 'wrap_each' args
Author: scribu
Created: 2011-12-15 23:39:59+00:00
State: open

It's a common need to wrap certain inputs in something beyond a tag. Example syntax:

```php
scbForms::input( array(
'name' => 'rich',
'type' => 'checkbox',
'values' => array( 'apple', 'orange', 'banana' ),
'wrap' => html( 'ul id="fruit"', scbForms::TOKEN ),
'wrap_each' => html( 'li', scbForms::TOKEN )
) );
```

'wrap_each' would only affect radio buttons and multiple checkboxes.