Mikayil Abdullayev
Mikayil Abdullayev

Reputation: 12376

Getting a server control property value via Java Script

I want to access a boolean property of my User Control through Java Script. For this I do:

..=document.getElementById('<%= dtPickerBirth.ClientID%>').IsValidDate;

As you might guess IsValidDate is a boolean value and I want to access it. Is there anything wrong with this code? I use this for validation purposes but it does not work.

Upvotes: 1

Views: 651

Answers (1)

Dante
Dante

Reputation: 3891

What about ..= '<%= dtPickerBirth.IsValidDate %>'; ?

Upvotes: 1

Related Questions