I did a little different from Dvd, because when the cursor stays like Pointer
the whole time it seems everything is clickable, but not everything has click. So I put cursor:default;
in the parent element and only used cursor:pointer;
in the clickable areas.
In the jquery-ui.css
file, go to the end of the styles, and override the .ui-datepicker
/* ----- Override de classes -----*/
.ui-datepicker {
cursor: default;
}
.ui-datepicker a {
cursor: pointer;
}
Here is the link to get the jquery-ui CSS : link
If you want to use the CDN link as in the example below, just put within the <head>
of your page the new CSS inside tags <style> css com o override </style>
</head>
If you want to use these classes in a file for example style.css
you should put the classes inside it and the <head>
where you call the file links should look like this: (Note that your CSS with new classes style.css
must come below jquery-ui.css
)
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="style.css">
Example with the Default and Pointer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><scriptsrc="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<style>
.ui-datepicker {
cursor: default;
}
.ui-datepicker a {
cursor: pointer;
}
</style>
</head>
<body>
<input type="text" id="calendario">
<script>
$('#calendario').datepicker();
</script>
</body>
</html>