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.
変わりたい:
<div class="control-group">
に:
<div class="control-group success">
div タグ内の要素を更新する方法はわかりません。
jQuery には、そのための特定のメソッドである.addClass( ) メソッドがあります。
$('.control-group').addClass('success');
ここでいくつかの興味深い可能性のある他の方法: