-2

How can I hide this div my code is below:

 <div class="ui-grid-solo">
    <div class="ui-block-a" id="commentsection">
     <label for="comments">Comments:</label>
         <input type="text" name="comments" id="comments" value="">
         <a href="javascript:;" data-role="button" data-iconpos="right" id="comment">Comment</a>
    </div>
</div>
4

1 回答 1

2

在 jQuery 中有一个函数 .hide(),所以你要做的是:

$(document).ready(function{
    $(".ui-grid-solo").hide();
});
于 2013-08-08T14:15:43.510 回答