+ Start a Discussion

DatePicker issue


I am using the following script to show many years in date picker. I have tabs in my vf page, when I use this code I am unable to switch between tabs. With out the script I was able to switch to other tabs. Any help to switch to others tab with the date picker code working fine wuld be appreciated.


<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<span id="hideThisHomePageComp"></span>
<script type="text/javascript">
$j = jQuery.noConflict();
$j(document).ready(function() {
                var startYear=1985;
                var endYear=2024;
                var htmlStr='';
                                                htmlStr += "<option value=\""+i+"\">"+i+"</option>";
                $j('#sidebarDiv #hideThisHomePageComp').parent().parent().hide();