• Page:
  • 1

Datetimepicker js / jQuery tricks for make your forms user friendly

OFFLINE

Datetimepicker js / jQuery tricks for make your forms user friendly

1 week, 4 days ago
Hi All,

I have used below jQuery tricks for various purpose. You can also use them if you are facing this type of issues -

1. Hide time while using uKnowvaUI::dateTimePicker(); Code is as follows -
//pass array('timepicker'=>false) in the $options 4th parameter of uKnowvaUI::dateTimePicker()
$options['timepicker'] = false;
 uKnowvaUI::dateTimePicker('name',$value,$format,$options)


2. Display dateTimePicker pop up to North by default it displays in South. Code is as follows -
		jQuery('#datetimepicker_id').click(function(){
		    var popup =jQuery(this).offset();
		    var popupTop = popup.top - 100;
		    jQuery('.xdsoft_datetimepicker').css({
		      'top' : popupTop
		     });
		});


3. Hide default autocomplete from input elements. Code is as follows -
jQuery("input").attr("autocomplete","off");


You can add this jQuery code according to the requirement in your layout or in the core file of your component/plugin/module.

Let me know if you having any query related to this.

Thanks,
Last Edit: 1 week, 4 days ago by Rajat Pal.
The following user(s) said Thank You: Vicky Jain, Manali Dalvi, Amit Aher, Aadarsh Jain, Ashwin Verma
  • Page:
  • 1

Upcoming Events

Who's Online

2 users online