jQuery addClass example

Change class name on click in jQuery

by atach

HTML

<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<>
<div id="datepicker"></div>

JavaScript

$( function() {
    $( "#datepicker" ).datepicker();
  } );