You won’t be able to do it purely with Javascript (with or without jQuery) as the images are hosted server-side, and there’d be no way for a Javascript function to scan to see what’s available.
What you could do is write a function to do it in functions.php and tie it to a shortcode, but then you’re starting to get into the territory of where a plugin would be easier.
Related Posts:
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Making $ globally accessible with jQuery.noConflict()
- Creating Ajax backend for Specialised Page Template? Should admin-ajax.php be used?
- Adding jquery and thickbox to WordPress theme
- Best Practices for Seperating jQuery from HTML/PHP
- Any good lightbox-like option that works in WP 3.2.1?
- wp_head() remove redundant scripts?
- Why use admin-ajax.php when loading pages through AJAX?
- How to change background image from WordPress Gallery
- Nested Gallery Shortcode INTERMITTENTLY working
- WordPress 3.1 makes my drop down menu dissapear, jquery dont work
- Delete post image attachments with jQuery from the front end
- Can’t add classes using jQuery from a JSON string with get_body_class()
- A carousel slideshow plugin in JavaScript
- How to insert fancybox to multiple separate galleries in a post?
- JQuery is not defined but jquery script is loaded in source [closed]
- Create thumbs/gallery from custom fields
- Dynamic image grid gallery
- JQuery WordPress gallery [closed]
- jQuery equivalent of JavaScript’s addEventListener method
- What is content-type and datatype in an AJAX request?
- Checking a Url in Jquery/Javascript
- When and why to ‘return false’ in JavaScript?
- How can I display a tooltip message on hover using jQuery?
- How is JavaScript .on() method defined?
- JQuery: $.get is not a function
- Bootstrap carousel not sliding
- How can I expand and collapse a using javascript?
- jQuery: using a variable as a selector [duplicate]
- jQuery – checkbox enable/disable
- How can I correctly format currency using jquery?
- How do I send this form's output to a new WordPress page?
- Annoying “JQMIGRATE: Migrate is…” in console after update to WordPress 4.5
- Update jquery version
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- Using the WordPress Media Library and returning the Attachment ID rather than URL?
- WP set auth cookie using Ajax is not saved to browser
- Customizing gallery shortcode in 3.5
- Modify Custom Field in Media Library using JavaScript
- Loading jQuery With Two Fallbacks
- Localize variable for multiple Shortcodes
- ajax call in wordpress front end
- Comment form vaildation
- Enqueuing jQuery in plug-ins
- Script doesn’t load because of a javascript MIME type error
- TinyMCE – TypeError: r is undefined
- Auto-detect javascript errors and warn theme user
- combining js scripts from a js newb [closed]
- Heartbeat API: How to access data already enqueued?
- Combining media queries with image sizes
- Implementing lazy loading in homepage posts instead of pagination
- Jquery integration with my theme
- How to stop focus() in custom js from scrolling to footer?
- Is it possible to hide media details sidebar when wp.media popup is being opened?
- Getting post meta in the flex slider
- Format numeric symbols in titles
- Modify Gallery Output to render differently on a PAGE and a POST
- Removing jQuery from footer
- How can I make this custom menu work?
- Remove WordPress scripts
- Using bootstrap-slider and bootstrap-switch in wordpress admin panel
- WordPress jquery files not being enqueued
- what’s the best way to add a class to the div with a class of post every 4 seconds using jquery? [closed]
- Why Won’t my jQuery Play Nice with WordPress?
- Delete some text and change html tag with Jquery
- Unexpected script loading order
- a weird attribute on every html tag
- Showing All the Posts in the Loop
- How to enque js script in footer that are not in .js file?
- Cherry Framework theme, JQuery is using HTTP not HTTPS
- Custom AJAX form not working async
- Is there a default way in wordpress to create a overlay in the dashboard?
- enqueue jQuery into the footer
- Jquery not working
- Bootstrap and jQuery error: $ is not defined
- Fire action after enqueue script
- Auto next upon clicking image without clicking Next button
- Doing Math with Gravity Forms List
- I am trying to load a Js Dynamic Audio Synth [closed]
- Uncaught ReferenceError: jQuery is not defined
- Remove button from page if viewed through Customizer
- Target a specific page/template in jQuery
- How to submit form data in the same page in WordPress without reloading the page?
- Multiple level category drop-down three levels is not working
- JQuery and Javascript to pan image
- How to add JS snippet before closing tag?
- Show/Hide text after the first paragraph
- Check with jQuery value of checkbox from custom admin panel
- Hide input field when second input field is in focus
- WooCommerce – PrettyPhoto appending URL with #prettyPhoto
- Slider do not add alt attribute. Cant get alt attribute from a media library!
- Is it possible to append an external html file to my wordpress navigation?
- jscrollpane problem with my child theme
- Change image on post title hover (more than one instance) – Jquery
- How to fire jQuery after $(window).on(‘load’)
- My website si Blocked by google and warns the visitors that is Unsafe site
- how to make this work with jquery 1.12.4 [closed]
- Theme variation conflict with jquery select2 dropdown
- Generate dynamic ID’s for each accordion button
- Impossible to update jQuery version from 3.1.0