我在lib/form
中有一个像这样的输入字段:
'zipcode' => new sfWidgetFormInputText(array(), array('size' => '40', 'maxlength' => '100', 'value' => $t,
// 'onblur' => "if(this.value == '') { this.value='$t'}",
'onfocus' => "if (this.value == '$t') {this.value=''}",
'choices' => array('c' => '', 'm' => '12345', 'f' => '98765')
)),
choices
选项不起作用。当我点击zipcode时会出现带有某些zipcodes的下拉列表吗?
答案 0 :(得分:1)
没有标准的HTML字段可以做你想要的。你可以:
select
)