1

Date Picker is not working for my below code, it is displaying javascript error when I tried to see using F12 in IE. JS error

"Unable to get property 'addEventListener' of undefined or null reference"

. Please help me to find out problem. But one strange is happening here, when I use other input date field(by default from object temp field) this is also working.

please help me ASAP..............

<apex:pageBlockSectionItem id="testDateSecItem" rendered="{!showtestDate}">
<apex:outputLabel Test Date</apex:outputLabel>                            
<apex:outputPanel >
<div class="requiredInput"> 
<div class="requiredBlock"></div>
<apex:inputText value="{!testDate}" size="10" id="testDateId" label="Start Date" onfocus="DatePicker.pickDate(true, this , false);" required="true" onchange="setTabUnsavedChangesOnForm();return false"/> &nbsp;[
<apex:commandLink onclick="fillStartDate('{!TODAY()}');return false;" id="cmdLink"> 
<apex:outputText value="{0,date,dd/MM/yyyy}" style="color:#0070d2; text-decoration:none" id="outtxt">
<apex:param value="{!TODAY()}" id="dateId"/>
</apex:outputText>
</apex:commandLink> &nbsp;]
</div>
<apex:message for="testDateId" style="color: #cc0000;"></apex:message>
</apex:outputPanel>
</apex:pageBlockSectionItem>

closed as unclear what you're asking by Adrian Larson, Himanshu, Boris Bachovski, Eric, cropredy Feb 8 '16 at 3:40

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Can you add a link to the Datepicker library and also be more specific about which browser version you tried? IE behavior can vary pretty dramatically even just going back to 8. Have you tried on other browsers? – Adrian Larson Feb 5 '16 at 16:39
  • Thank-you for sharing comments. I tried this chrome and IE11. Issue was happened in both browsers. Please elaborate which link I needs to add for data picker library, – Venkata Raja Feb 6 '16 at 12:35