This has already been posted many times but question still keeps coming up on how to get the current user using Jquery.
Here is the code.
<script src="/sites/devsc/Style%20Library/jquery-1.8.3.min.js" type="text/javascript"></script> <script src="/sites/devsc/Style%20Library/jquery.SPServices-0.7.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { var thisUser = $().SPServices.SPGetCurrentUser(); alert(thisUser); }); </script>
Make sure to reference Jquery and SPServices library. When you download Jquery library don’t download 1.9.x as it did not work with SPServices 0.7.2 (as of today).
Cheers