EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: bvicencio on May 01, 2012, 04:45:26 PM



Title: How I can set the day Monday as the first day in a datebox?
Post by: bvicencio on May 01, 2012, 04:45:26 PM
How I can set the day Monday as the first day in a datebox?. I tried FirstDay: 1, but does not work. Surely I do something wrong.

Thank!!


Title: Re: How I can set the day Monday as the first day in a datebox?
Post by: stworthy on May 02, 2012, 01:57:53 AM
Try following code:
$.fn.calendar.defaults.firstDay = 1;


Title: Re: How I can set the day Monday as the first day in a datebox?
Post by: bvicencio on May 14, 2012, 06:13:20 PM
Thanks for your help, but not working. I would greatly appreciate if you were more specific with your help. I am new to this. Thank!!!


Title: Re: How I can set the day Monday as the first day in a datebox?
Post by: stworthy on May 15, 2012, 05:50:14 PM
The example below shows how to set Monday as the first day of calendar:

Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DateBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script>
$.fn.calendar.defaults.firstDay = 1;
</script>
</head>
<body>
<input class="easyui-datebox" value="5/3/2012"></input>
</body>
</html>