<title>jQuery :visible Selector Select All Visible Elements in a Div</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
$(document).ready(function(){
$('.mybtn').click(function(){
$( ".myvisiul li:visible" ).css("color", "red");
<h2>jQuery :visible Selector Select All Visible Elements in a Div</h2>
<p><button type="button" class="mybtn">Click to Select Visible Element</button></p>
<li class="myphide">Chair</li>
<li class="myphide">Comfortable Chair</li>