Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スタイルのサブ属性を削除する方法。display:none;以下のコードからスタイルの属性のみを削除したい。
display:none;
<div class="ui-state-default ui-jqgrid-hdiv" style="width: 1085px; display: none; visibility: visible; ">
削除する代わりに、スタイルシートでオーバーライドできます
display: block !important;
ただし、そのコードが JS を介して挿入された場合、本当に不要な場合は、最初に JS から削除することをお勧めします。
これを試して:
$('.ui-state-default').css('display', 'block');