Using the form api is it possible to combine two text fields onto the same row?
E.g. form
<?php
function foo_form($form, $form_state) {
$form = array();
$form['range'] = array(
'#type' => 'fieldset',
);
$form['range']['min'] = array(
'#type' => 'textfield',
'#title' => 'Address'
),
$form['range']['address2'] = array(
'#type' => 'textfield',
'#title' => 'Address'
)
// ...
return $form;
}
Desired output
<div>
<h2>Range</h2>
<input name="min" /> to <input name="max" />
</div>