jquery-ui-datepicker

jQuery datepicker doesn't appear in Firefox

雨燕双飞 提交于 2019-12-14 01:56:58
问题 I have an input form using FLAT UI KIT that MUST contain a datepicker, so I chose to use jQuery's widget. But when I run it in Chrome the datepicker shows up, whilet on Firefox it is shows as a simple text input. Here is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>My test · stuff with datepicker</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Loading Bootstrap --> <link href="bootstrap/css/bootstrap.css" rel="stylesheet">

font-size different in -webkit and -moz browsers

荒凉一梦 提交于 2019-12-14 00:16:40
问题 Check this jsfiddle Why is there a difference in size of the datepicker when font-size is set to 1.5em ? The amount of em's is not important I have tryd different font-sizes and I still get the same problem. The red box is set to 460px and is there for you to see the difference in size of the datepicker in firefox and chrome/safari. Edit: I have already try'd using px insted of em 回答1: Firefox uses DirectWrite to render text, and Chrome doesn't. That is the reason for the ever so slightly

jQuery datetimepicker formatting in rails 3.2

筅森魡賤 提交于 2019-12-13 20:02:25
问题 I'm using the following datetimepicker which from my understanding is the jquery-ui datepicker that has been extended. http://trentrichardson.com/examples/timepicker/ My issue is I want to display to the user am and pm times, but I want to format it differently so that when I submit it to a mysql database, the time format enters the standard "YY-mm-dd - hh:mm:ss" format. This is the format that it currently inputs 回答1: jQuery UI date pickers support passing altField and altFormat options to

jquery datepicker remove .ui-state-highlight class onSelect event

好久不见. 提交于 2019-12-13 18:30:01
问题 I am developing the web application, in this application i used the jquery datepicker plugin. I am using the datepicker as inline datepicker. when i select a date, i am trying to remove a css class ui-state-highlight , but not reflected in datepicker. $("#start_date").datepicker({ beforeShowDay: greySelectedDateRange, maxDate: 0, onSelect: function (dateText, inst) { console.log(dateText); var toDaysDate = getCurrrentDate('mdy'); //function returning current date console.log(toDaysDate); /

How to validate year value in datepicker?

偶尔善良 提交于 2019-12-13 07:39:32
问题 Description: I'm using Jquery datepicker in my application, and also user is allowed to enter date by keyboard. Everything is working fine but when user enters 000 or 0000 as year then my code is breaking , because there is no year having value '000 or 0000'. So, I want to validate value entered by user, specially year value, b'coz date picker is validating date and month and giving an error accordingly but it is not validating year value. 来源: https://stackoverflow.com/questions/44385743/how

JQuery get list of available date objects from datepicker

懵懂的女人 提交于 2019-12-13 06:49:59
问题 I have the following datepicker set up: <script> var disabled = ["2014-09-01","2014-10-16", "2014-10-17", "2014-10-20", "2014-11-26", "2014-11-27", "2014-11-28", "2014-12-22", "2014-12-23", "2014-12-24", "2014-12-25", "2\ 014-12-26", "2014-12-29", "2014-12-30", "2014-12-31", "2015-01-1", "2015-01-2", "2015-01-19", "2015-02-16", "2015-03-9", "2015-04-06", "2015-04-07", "2015-04-08", "2015-04-09"\ , "2015-04-10", "2015-05-25" ] // yyyy-mm-dd $("#datepicker").datepicker({ minDate: new Date(2014,

jQuery UI Multi Date Picker Stop rotating months on date select

大兔子大兔子 提交于 2019-12-13 06:19:11
问题 Please check the fiddle below. When a date is selected on any calander accept first one, control rotates to make that calendar first one. I want to stop this behavior. http://jsfiddle.net/URcqn/8/ I am using a plugin called Multi Date Picker, but it is basically jQuery Date Picker. When you select a date in 2nd or 3rd month the control rotates months to make the month i selected date on first calendar. How can I stop this behavior ?? 回答1: Try using Jquery Datepicker which has the feature you

Datepicker onSelect not working

爱⌒轻易说出口 提交于 2019-12-13 05:42:12
问题 I have the function below that doesn't seem to work and could do with a little help please. The function basically adds 30 days to the date selected with the datepicker. $('#datepicker').datepicker({ onSelect: function(dateText, inst) { var date = new Date(dateText); date.setDate(date.getDate() + 30); date.format('mm/dd/yy'); alert(date) } }); I cant see where I am going wrong. When a date is selected it is adding a empty anchor to the address bar URL, if is helps. Thanks. 回答1: The problem is

Laravel Datepicker And Eloquent Query

雨燕双飞 提交于 2019-12-13 05:17:05
问题 I am making a page where I can use the date ranger, datepicker from jqueryui.com and i am very mewbie to laravel Framework. I have the eloquent query as follows, public function orderbydate() { $order =DB::table('sales_flat_order_items as s') ->leftJoin('sales_flat_orders as w', 'w.entity_id','=','s.order_id') ->select(array(DB::Raw('sum(s.amount_refunded) as amount_refunded'), DB::Raw('sum(s.row_total) as row_total'), DB::Raw('sum(s.discount_amount) as discount_amount'), DB::Raw('sum(s.tax

Replace jQuery datepicker prev and next icons with FontAwesome icons

萝らか妹 提交于 2019-12-13 03:15:52
问题 I'm using jQuery datepicker and I would like to be able to replace its prev and next icons with FontAwesome for better scalability and prettier UI. Has anyone managed to find a way to do it? 回答1: We can overwrite the icons using CSS, since the plugin doesn't allow it. In the following snippet, we hide the regular buttons, and add a :before pseudo element with the Font Awesome Icon. Please notice you have to use the icon's codepoint (i.e. \f100 ) and not its class name (i.e. fa-angle-double