references:joomla.legacy:1.5:moshtml-radiolistradioList
A convenient method of producing a list of HTML radio buttons. Syntax Syntaxstring radioList ( array &$arr, string $tag_name, string $tag_attribs [, mixed $selected [, string $key [, string $text ]]] )
ExamplesExample: Example // Create an array of options. $mylist = array(); $mylist[] = mosHTML::makeOption( 'Radio 1' ); $mylist[] = mosHTML::makeOption( 'Radio 2' ); $mylist[] = mosHTML::makeOption( 'Radio 3' ); // Generate the HTML radio button list. $html = mosHTML::radioList( $mylist, 'chan', 'class="inputbox"', 'Radio 2' ); echo $html; which produces: Result <input type="radio" name="chan" id="chanRadio 1" value="Radio 1" class="inputbox" /> <label for="chanRadio 1">Radio 1</label> <input type="radio" name="chan" id="chanRadio 2" value="Radio 2" checked="checked" class="inputbox" /> <label for="chanRadio 2">Radio 2</label> <input type="radio" name="chan" id="chanRadio 3" value="Radio 3" class="inputbox" /> <label for="chanRadio 3">Radio 3</label> which renders as:
|



