Try the following code example:
$('ul li:gt(3)').hide();
$('.show_button').click(function() {
$('ul li:gt(3)').show();
});
More Related Contents:
- PLEASE assist me.. RE: *FORM FIELDS* I want to Hide() my "type=text box" until the Other option is chosen in the dropdown option
- Toggle show/hide on click with jQuery
- Toggle visibility property of div
- How can I use delay() with show() and hide() in Jquery
- Using jQuery, how do you find only visible elements and leave hidden elements alone?
- How can I convert this from jQuery to standard javascript?
- How do I detect a click outside an element?
- What’s the difference between ‘$(this)’ and ‘this’?
- Detect element content changes with jQuery
- Only detect click event on pseudo-element
- How to differentiate single click event and double click event?
- jQuery difference between change and click event of checkbox
- Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser
- JQuery document.ready vs Phonegap deviceready
- jquery, find div class name at a certain position while scrolling
- How to prevent simultaneous logins of the same user with Firebase?
- How to reset the bootstrap modal when it gets closed and open it fresh again?
- How to format a phone number with jQuery
- How to dynamic filter options of with jQuery?
- How do I verify jQuery AJAX events with Jasmine?
- How do you limit options selected in a html select box?
- Trigger $document.ready (so AJAX code I can’t modify is executed)
- regular expression to validate datetime format (MM/DD/YYYY) [duplicate]
- Why does everything display at once, using setTimeout in Javascript?
- jquery.mobile 1.4.5 Uncaught TypeError: Cannot read property ‘concat’ of undefined
- How to maintain page scroll position after a jquery event is carried out?
- Differentiate between focus event triggered by keyboard/mouse
- Javascript Highlight Selected Range Button
- Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link
- Does jQuery strip some html elements from a string when using .html()?