jquery-ui-datepicker

DataType attribute wrecking jQuery datepicker on Datetime field

那年仲夏 提交于 2020-03-01 07:24:19
问题 I am using MVC 4 and Razor views and am having trouble understanding why the Edit view on my Date field is not binding properly to the built in jQuery datepicker. The field is of datatype Date in the Database, and DateTime in the domain model. I do not wish to show time, only the date. The field is required and needs formatting. My view looks like this : <div class="editor-label"> @Html.LabelFor(model => model.Appointment.EndDate) </div> <div class="editor-field"> @Html.EditorFor(model =>

Custom text on jquery ui datepicker event

拈花ヽ惹草 提交于 2020-02-07 19:52:09
问题 I'm receiving an array from a database with some dates and a description for each day. I wish to display a jquery datepicker calendar where the specified dates are displayed with a custom css class. Besides that the user should be able to click on the specific date and get the description displayed in a different div element. The first part with the css class is working, but I can't get the description to display. This is what I have so far: var Event = function(text, className) { this.text =

Pick multiple dates one by one with Jquery/Datepicker

核能气质少年 提交于 2020-02-03 09:32:49
问题 I have a form and on that form I would like to have a datepicker. So when someone clicks select dates field the datepicker pops up and shows multiple months. From there I would like for the person to click individual dates, each click the date they selected gets appended to the form field comma seperated. Im looking for a jquery solution, right now Im looking at: http://jqueryui.com/demos/datepicker/#multiple-calendars The problem is when I select a date the datepicker closes then the date

Pick multiple dates one by one with Jquery/Datepicker

我只是一个虾纸丫 提交于 2020-02-03 09:31:21
问题 I have a form and on that form I would like to have a datepicker. So when someone clicks select dates field the datepicker pops up and shows multiple months. From there I would like for the person to click individual dates, each click the date they selected gets appended to the form field comma seperated. Im looking for a jquery solution, right now Im looking at: http://jqueryui.com/demos/datepicker/#multiple-calendars The problem is when I select a date the datepicker closes then the date

jquery UI datepicker month and year only css positioning problem

蹲街弑〆低调 提交于 2020-01-23 06:56:40
问题 I have implemented the solution discussed here: JQuery Datetime picker - Need to pick month and year only. and it is working well. The only issue I am finding is that when the datepicker appears above the input field (e.g. when there is not enough room below) then the position of the picker is wrong (it is much too high, leaving a gap between the picker and the input field). Presumably this is because I am dynamically hiding the days of the month in the picker after jquery calculates its

JQuery datepicker not working

荒凉一梦 提交于 2020-01-22 14:03:27
问题 Good day! I am trying to use jquery for the first time. And i cannot make it work. My code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body>

JQuery datepicker not working

风流意气都作罢 提交于 2020-01-22 14:01:24
问题 Good day! I am trying to use jquery for the first time. And i cannot make it work. My code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> </head> <body>

How to put default value in CJuidatepicker in Yii?

扶醉桌前 提交于 2020-01-16 01:16:09
问题 I have the code below to display a calendar input in Yii form. <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 'name' => 'publish_date', 'attribute' => 'publish_date', 'model'=>$model, 'options'=> array( 'dateFormat' =>'yy-mm-dd', 'defaultDate' => '2014-3-4', 'altFormat' =>'yy-mm-dd', 'changeMonth' => true, 'changeYear' => true, 'appendText' => 'yyyy-mm-dd', ), )); ?> The default value work on the calendar but I want to show it by default in the calendar input too when the form

Using datepicker in MVC 4.0 to persist a date value in db, throwing “object doesn't support this property or method”

依然范特西╮ 提交于 2020-01-16 01:00:39
问题 Working around with MVC 4.0/Razor as the view engine. Scenario: Binding a calendar to a text box, clicking in the txtBox should let a calendar flow down,using jqueryUI's datepicker and submitting it to a sql db. What I did: Model class: public class UserModels { [Required(ErrorMessage = "Mandatory Field")] public virtual string Name { get; set; } public virtual int Id { get; set; } [DataType(DataType.Date), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]

jQuery ui datepicker questions

烂漫一生 提交于 2020-01-15 11:07:19
问题 I am having two text fields From, To.Here i want to do many things with is two fields. I want to select next three days on selected date.Which means,if I am selecting jan 1,2012 in From field , then To field should automatically select jan 1,2,3 2012 . While I am hover on jan 1 , It should highlight jan 1,2,3 While I am selecting on jan 1 it should it disable after 10 days (after jan 10 all dates should disabled) Suppose I disabled jan 2 means.While I am selecting jan 1 tool tip message