title: how to add onclick event to button in yii bootstrap(http://www.cniska.net/yii-bootstrap/#tbButton)
body: <p>I want to add onclick event to a button in yii bootstrap (<a href="http://www.cniska.net/yii-bootstrap/#tbButton" rel="nofollow">http://www.cniska.net/yii-bootstrap/#tbButton</a>)....</p>
  
  <p>I am able to achieve this using,</p>
  
  <pre><code>&lt;?php echo CHtml::button('Add task',array('onclick' =&gt; 'js:addtolist()'))?&gt;
  </code></pre>
  
  <p>but I want to do it with bootstrap button,</p>
  
  <pre><code>&lt;?php $this-&gt;widget('bootstrap.widgets.TbButton', array('buttonType'=&gt;'button', 'label'=&gt;'Submit')); ?&gt;
  </code></pre>
  
  <p>I have a JavaScript function that I want to call on the button click event. </p>
  
  <p>Thanks for the help in advance.... </p>