Yii框架 - 获取输入字段的当前值

I have a YiiStrap textfield and I want to send the value to the controller of this View. Currently I am hard coding the value but I want to get the current value of the input field. Does anyone know how to do this? The onclick should call the function on the controller and pass the textfield's current value with it. Below is my code:

    <?php echo TbHtml::textField('text', '', array('id' => 'inputSearch', 'value' => 'hello', 'append' => 
TbHtml::button('test', '', array(
     'class' => 'lookup',
     'id' => 'lookup',
      'color' => TbHtml::BUTTON_COLOR_PRIMARY,
       //'onclick' => TbHtml::listData(HighSchoolDistrict::model()->findAll(), 'High_School_District_Name', 'High_School_District_Name'),
      'onclick' => $this->actionDoSomething('bal'),
    )

 ))); ?>

You can use ajax to post value in controller:

$("#lookup").click(function(){
    $.ajax({
        type: "POST",
        url: "<?php echo Yii::app()->createUrl('site/search');?>",
        data: {inputSeach: $("#inputSearch").val()},
        success:function(){}
    });
});