I made it a little different from the DVD, because when the cursor looks like Pointer
the whole time it seems that everything is clickable, but not everything has click. So I put the cursor:default;
in the parent element and only used the cursor:pointer;
in the clickable areas.
In the archive jquery-ui.css
go to the end of the styles, and override the classes .ui-datepicker
/* ----- Override de classes -----*/
.ui-datepicker {
cursor: default;
}
.ui-datepicker a {
cursor: pointer;
}
Here’s the link to get the CSS from jquery-ui: https://jqueryui.com/download/all/
If you want to use the CDN link as in the example below, just put inside the <head>
from your page the new CSS within tags <style> css com o override </style>
</head>
If you want to use these classes in an aquivo for example style.css
you must put the classes inside it and in the <head>
where vc calls the links of the files should come like this: (Note that your CSS with new classes style.css
should come under the 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 solution 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>
<script src="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>
I had to make some settings in JS pro datepicker, if I do it will work? $('#calendarioIni'). datepicker({ startDate: '01/01/1998', endDate: '31/12/1998', dateFormat: 'dd/mm/yy' }); $( ". ui-datepicker-Trigger" ).css('cursor','Pointer');
– V.Avancini
I tested here and did not roll
– V.Avancini
The style on the cursor works, but I think what you want to do with Startdate and endDate would be the equivalent of minDate and maxDate
– Caique Romero
here is the opposite, it works the range but does not work the cursor
– V.Avancini
Can you edit your question and include the code? With a mcve? This will make our answers more accurate. http://answall.com/help/mcve
– Caique Romero