删除jquery datepicker alt中的3个点

Ron*_*ero 7 jquery yii

我通过YII框架使用jquery datepicker并使用图像.这个图像有titlealt我无法删除它们

这是我在YII中显示图像的代码

$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'name' => 'sso_register[dob]',
//'model' => $model,
'attribute' => 'dob',
'value' => $dbText,
'options' => array(
'changeMonth' => true,
'changeYear' => true,
'dateFormat' => 'dd/mm/yy',
'yearRange' => "-100:+0",
'maxDate' => '31/12/2007', //day can choose >= tomorrow
'buttonImage' => Yii::app()->baseUrl . '/images/date_picker.png',
'buttonImageOnly' => true,
'showButtonPanel' => false,
'showOn' => 'button',
'altField' => '',
),
'htmlOptions' => array(
'class' => 'inputfield-middleside-date',
'readonly' => 'true',
'style' => 'position: relative; z-index: 100;',
'tabindex' => '7',
'alt'=>'',
'title'=>'',
)
));
Run Code Online (Sandbox Code Playgroud)

在所有浏览器中删除图像alt属性中的这3个点的任何方法?谢谢

Ron*_*ero 12

添加'buttonText'=>'',将解决问题

http://api.jqueryui.com/datepicker/#option-buttonText

  • 好的,也许文档的链接将有助于使这个答案更好:[jqueryui datepicker button text](http://api.jqueryui.com/datepicker/#option-buttonText). (2认同)