数组的值必须成为输入字段

这是我的arrays

$m3 = array ( '2' => '2', '4' => '4', '6' => '6', '9' => '9', '14' => '14', '18' => '18', '20' => '20', 'other' => 'other' ); 

如何让’other’改变我在输入字段’other_interest’中的内容?

  input('Car/m3', array('name' => "other_interest", 'style' => "display:none", 'class' => 'inputText', 'label' => false));?> 

当我选择其他时,jQuery显示输入字段

   jQuery(document).ready(function() { jQuery("#CarM3").change(function() { if (jQuery(this).val() === 'other'){ jQuery('input[name=other_interest]').show(); } else { jQuery('input[name=other_interest]').hide(); } }); });  

我从你的问题中理解的是,你希望在输入字段中显示“其他”:“other_interest”。