javascript - How to get value of selected item from dropdown in jquery UI tabs content -


i using jquery ui tabs , have text filed , dropdown select in tab's content, getting value text field not dropdown select item, can 1 please me, project in yii

<html lang="en"> <head>   <meta charset="utf-8">   <title>jquery ui tabs - vertical tabs functionality</title>   <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">   <script src="//code.jquery.com/jquery-1.10.2.js"></script>   <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>   <link rel="stylesheet" href="/resources/demos/style.css">   <script>   $(function() {     $( "#tabs" ).tabs().addclass( "ui-tabs-vertical ui-helper-clearfix" );     $( "#tabs li" ).removeclass( "ui-corner-top" ).addclass( "ui-corner-left" );   });   </script>   <style>   .ui-tabs-vertical { width: 55em; }   .ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }   .ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }   .ui-tabs-vertical .ui-tabs-nav li { display:block; }   .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; }   .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}   </style> </head> <body>  <?php echo $model->name;?> <div id="tabs">   <ul>     <li><a href="#tabs-1">nunc tincidunt</a></li>     <li><a href="#tabs-2">basic information</a></li>     <li><a href="#tabs-3">report</a></li>     <li><a href="#tabs-4">set schedule</li>   </ul>   <div id="tabs-1">     <h2>content heading 1</h2>     <?php echo 'la la';?>   </div>   <div id="tabs-2">     <h2>content heading 2</h2>    </div>   <div id="tabs-3">     <div class="form"> <?php $form=$this->beginwidget('cactiveform', array(     'id'=>'message-form',         'htmloptions'=>array('target'=>'_blank'),     'enableclientvalidation'=>true,     'clientoptions'=>array(         'validateonsubmit'=>true,     ), )); ?>      <p class="note">fields <span class="required">*</span> required.</p>         <?php echo $form->errorsummary($model_report_form);                  ?>         <table class="table">              <tr>                 <td><?php                     echo $form->labelex($model,'month');                     $months = array(                         '01'=>'january',                          '02'=>'february',                         '03'=>'march',                          '04'=>'april',                         '05'=>'may',                          '06'=>'june',                         '07'=>'july',                          '08'=>'august',                         '09'=>'september',                          '10'=>'october',                           '11'=>'november',                          '12'=>'december',                         );                     //$stat = array('13' => yii::t('month','all'));                     echo $form->dropdownlist($model_report_form,'month',$months,array('empty' => '--select month--'));                                 //echo $form->textfield($model,'end_date');                  ?></td>                 <td><?php echo $form->labelex($model_report_form,'year');                    $years = array(                         '2016'=>'2016',                          '2017'=>'2017',                         '2018'=>'2018',                          '2019'=>'2019',                         '2020'=>'2020',                          '2021'=>'2021',                         '2022'=>'2022',                          '2023'=>'2023',                           '2024'=>'2024',                          '2025'=>'2025',                         );                     //$stat = array('3000' => yii::t('year','all'));                     echo $form->dropdownlist($model_report_form,'year',$years,array('empty' => '--select year--'));                   //echo $form->textfield($model,'end_date');                  ?></td>               </tr>             <tr>                 <?php echo $form->hiddenfield($model_report_form, 'employee',array('value'=>$model->employee_id)); ?>                 <?php echo $form->hiddenfield($model_report_form, 'report_type',array('value'=>'1')); ?>             </tr>         </table>         <div class="row buttons">         <?php echo chtml::submitbutton('get report',array('class'=>'btn btn-primary btn-block')); ?>     </div>  <?php $this->endwidget(); ?> </div><!-- form --> 


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -