<div> <span style="display:none;">A</span> <span>B</span> <span id="dog">C</span> </div>
$("#dog").hide().parent().children().show();
$("#dog").hide() // hide the #dog element .parent() // select div element .children() // select of child elements of a div element .show(); // show all selected child elements
Login in to like
Login in to comment
or Read more about JavaScript Quizzes
Login in to like
Login in to comment