Created
July 15, 2013 08:20
-
-
Save reggieb/5998338 to your computer and use it in GitHub Desktop.
Display the current JQuery version within a rails view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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