How to change button text onclick jquery

Jquery <strong>Tutorial for chaning button text after clicked</strong>. Use this simple code and change your button text.

HTML

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<input type="button" id="btnSubmit" value="Submit" />

JavaScript

$(document).ready(function(e) {
        
        $('#btnSubmit').click(function(){
				
        $(this).fadeOut().val("Button Clicked");
			
      
   });
  
});