我需要我的链接看起来像链接而不是按钮。 我使用removeClass删除阻止链接看起来像按钮
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover"
尝试和removeAttr删除
role="button"
但都不起作用。我应该如何防止这些类附加或只是简单地让我的链接看起来像链接?
我需要我的链接看起来像链接而不是按钮。 我使用removeClass删除阻止链接看起来像按钮
class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover"
尝试和removeAttr删除
role="button"
但都不起作用。我应该如何防止这些类附加或只是简单地让我的链接看起来像链接?
从jQuery用户界面按钮(http://api.jqueryui.com/button/#method-destroy)的API页面:
$(".selector").button("destroy");
完全删除按钮的功能。这会将元素返回到其初始状态。
只是不叫'$()。您的链接我的链接 – mhu
我没有打电话.button()... – Tej
你可能调用按钮()''.button()'用选择器是不正确的(不够具体) – mhu