title: Yii - what to pass as an argument when key-value pair is used in Yii extension ext.combobox.EJuiComboBox
body: <p>Now , I created two dropdownlists (min and max) using the below code.</p>
  
  <pre><code>&lt;?php
                      $this-&gt;widget('ext.combobox.EJuiComboBox', array(
                      'model' =&gt; $model,
                      'attribute' =&gt; 'min',                        'data'=&gt;array('100000.0'=&gt;'1lakh','200000.0'=&gt;'2lakh','300000.0'=&gt;'3lakh','400000.0'=&gt;'4lakh'),                              
      'assoc'=&gt;true,                    
  
                      'options' =&gt; array(
            'onSelect' =&gt; 'cost_change(item.value);',
                          'allowText' =&gt; false,
                      ),                  
                      'htmlOptions' =&gt; array('placeholder' =&gt; 'Min Cost', 'style'=&gt;'width:30px'),
                  ));                
                  ?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;?php
              $this-&gt;widget('ext.combobox.EJuiComboBox', array(
                  'model' =&gt; $model,
                  'attribute' =&gt; 'max',
  'data' =&gt; array('300000.0'=&gt;'3lakh','400000.0'=&gt;'4lakh','500000.0'=&gt;'5lakh','600000.0'=&gt;'6lakh'),   
                  'options' =&gt; array(                       
                      'allowText' =&gt; false,                       
                  ),                   
                  'htmlOptions' =&gt; array('placeholder' =&gt; 'Max Cost', 'style'=&gt;'width:30px'),
              ));               
  
              ?&gt;  
  </code></pre>
  
  <p>I'm calling a script on selecting the min value which in turn calls the script </p>
  
  <pre><code> &lt;script&gt;
  
          function cost_change(price) {
              var value = price;
              console.log("value",value);     
                jQuery('#max').html( jQuery('#SearchForm_min_cost_select').html())
              var toKeep = jQuery('#max').filter( function( ) {
                  return parseInt(this.value) &gt; parseInt( value);       
           } );        
             console.log("to keep",toKeep);
             jQuery('#max').html(toKeep);
          }
          &lt;/script&gt;  
  </code></pre>
  
  <p>Now my problem is when I select 1lakh as min value in dropdown, 1lakh is passed to script instead of 100000.0. What should I pass to the function cost_change to pass 100000.0 instead of 1lakh.</p>