Skip to content

Instantly share code, notes, and snippets.

@reggieb
Created July 15, 2013 08:20
Show Gist options
  • Save reggieb/5998338 to your computer and use it in GitHub Desktop.
Save reggieb/5998338 to your computer and use it in GitHub Desktop.
Display the current JQuery version within a rails view
jQuery <span id='jquery_version'></span>
<%= javascript_tag do %>
var jQueryVersion = jQuery.fn.jquery;
$('#jquery_version').html(jQueryVersion);
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment