1

I need to get DatePickerImage control of SharePoint:DateTimeControl. I tried :

document.getElementById('<%=DateDebut.Controls[0].ClientID %>')
document.getElementById('<%=DateDebut.Controls[1].ClientID %>')

and it gives me only date information.

Any idea how I can get this control?

  • is there a solution to make SharePoint:DateTimeControl readonly and to disable the DatePickerImage with javascript – Imen Turki Jul 7 '15 at 12:50
1

The easy way is to use:

document.getElementById('<%=DateDebut.Controls[0].ClientID %>+"DatePickerImage"');
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.