EasyUI Forum
May 19, 2024, 07:03:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How I can set the day Monday as the first day in a datebox?  (Read 14796 times)
bvicencio
Newbie
*
Posts: 13


View Profile Email
« 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!!
« Last Edit: May 04, 2012, 08:21:33 AM by bvicencio » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 02, 2012, 01:57:53 AM »

Try following code:
$.fn.calendar.defaults.firstDay = 1;
Logged
bvicencio
Newbie
*
Posts: 13


View Profile Email
« Reply #2 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!!!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!