2011-08-04 52 views

回答

2
<div class="room" data-people="jason"> 
    blah blah 
    </div> 
    <script> 
     $(".room[data-people='jason']").hide(); 
    </script> 

demo

1

像這樣:

$(".room[data-people=jason]").hide(); 
1

這應該做的伎倆:

$('.room[data-people=jason]').hide();