title: How to hide a element/tag on modal dialog in bootstrap?
body: <p>I have a problem about using modal dialog in bootstrap.
  I have a button, when I click on this button, then I want a tag on modal dialog to hide (
  eg : div class="radio published " is hidden).I used jquery but it doesn't run. Please help me. Thanks a lot!</p>
  
  <p>I don't understand why my css has no effect to modal dialog.</p>
  
  <pre><code> $("#change-status-modal .modal-body div.published").hide();
  </code></pre>
  
  <p>Code of button:</p>
  
  <pre><code> &lt;a href="#" data-toggle="modal" data-target="#change-status-modal" class="btn btn-default change-status"&gt;Change Status &lt;/a&gt;
  </code></pre>
  
  <p>Code of modal dialog:</p>
  
  <pre><code>&lt;div id="change-status-modal" class="modal" tabindex="-1" role="dialog" aria-hidden="true"&gt;
    &lt;div id="change-status-dialog" class="modal-dialog"&gt;
      &lt;div th:fragment="change-status-form" class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title"&gt;Change Status&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;p&gt;Select a new status that you want to change.&lt;/p&gt;
          &lt;div class="radio published "&gt;
            &lt;input type="radio" name="status"  value="PUBLISHED" /&gt; Published
          &lt;/div&gt;
          &lt;div class="radio draft "&gt;
            &lt;input type="radio" name="status" value="DRAFT" checked="checked" /&gt; Draft
          &lt;/div&gt;
          &lt;div class="radio scheduled"&gt;
            &lt;input type="radio" name="status" value="SCHEDULED" /&gt; Scheduled
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button class="btn btn-default" data-dismiss="modal" th:text="#{Cancel}"&gt;Cancel&lt;/button&gt;
          &lt;button class="btn btn-primary" th:attr="data-action=@{__${ADMIN_PATH}__/articles/change-status}"  &gt;Change&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>