Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我能找到它旁边的按钮吗';jQuery中的html是什么?_Jquery_Datepicker - Fatal编程技术网

我能找到它旁边的按钮吗';jQuery中的html是什么?

我能找到它旁边的按钮吗';jQuery中的html是什么?,jquery,datepicker,Jquery,Datepicker,我需要在jQueryUIDatePicker中找到“今天”按钮并将其删除 这是它的html: <button onclick="DP_jQuery_1295079747879.datepicker._gotoToday('#newMessageExpirationDate');" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Today&

我需要在jQueryUIDatePicker中找到“今天”按钮并将其删除

这是它的html:

<button onclick="DP_jQuery_1295079747879.datepicker._gotoToday('#newMessageExpirationDate');" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Today</button>

但是它不起作用。

您不能这样做,[]语法用于属性匹配。为什么不能用id或类来匹配呢

您需要使用:

你需要使用


它似乎没有id,类也不是唯一的,其他按钮也有。

buttonPanel.find('button[innerHtml="Today"]')
buttonPanel.find('button[html="Today"]')
buttonPanel.find('button[value="Today"]')
buttonPanel.find('button:contains("Today")')
buttonPanel.find('button:contains("Today")')