Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery Datepicker

iam using jquery datepicker.

i want to reduce the length of the year dropdownlist in the jquery datepicker.

iam using dropdownlist for month and year by setting the following properties

$(document).ready(
 function () {

     $("#<%= txt_date.ClientID %>").datepicker({ buttonImage: "../_Images/calendar1.gif", buttonImageOnly: true, showOn: 'button', changeYear: true, changeMonth: true, yearRange: "1900:2020", duration:'fast'});

 }

);

do you have any idea about this problem?

like image 936
giri-net Avatar asked Jun 28 '26 17:06

giri-net


1 Answers

What you have works, you can test it here, I assume you're talking about the actual dropdown length in the page, the vertical height of the <select>. Unfortunately you can't control this, it's something the browser handles completely.

like image 154
Nick Craver Avatar answered Jun 30 '26 12:06

Nick Craver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!