我需要链接看起来像链接而不是按钮。我尝试使用removeClass删除
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover"
和removeAttr删除
role="button"
但两者都不起作用。我应该如何防止这些类追加或只是使我的链接看起来像链接?
从jQuery UI按钮的API页面(http://api.jqueryui.com/button/#method-destroy):
$( ".selector" ).button( "destroy" );
完全删除按钮功能。这将使元素返回其初始状态。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句