optional textbox with checkboxs

Hi All,

I am using following code to generate checkboxes from database. I need to add optional textbox for some options. Can anybody clue to add it ?

$form->field($model_detail, ‘DOCUMENT_TYPE_ID’)

       ->checkboxList(


        $listData,array('separator'=>'<BR />')


       )->label('Select Document(s)');