We use toLowerCase method convert a string into lowercase. This functions returns a lowercase string. It will not modify the current variable.
var name = 'jQuery With Example';
alert(name.toLowerCase());
CODE
<!DOCTYPE html> <html> <head> <title>jQuery With Example</title> <script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('.btnClick').click(function () { var name = 'jQuery With Example'; alert(name.toLowerCase()); }); }); </script> </head> <body> <div> <button class="btnClick">Click</button> </div> </body> </html>
DISPLAY
No comments :
Please Give Your Feedback