Last post Jan 09, 2018 11:13 AM by Cathy Zou
Contributor
6382 Points
5678 Posts
Jan 08, 2018 08:10 AM|wmec|LINK
Hi, How to correct it below? https://app.box.com/s/j320dazyellbc8m9rulvrpagwr3nf7n3
Star
8650 Points
2882 Posts
Jan 09, 2018 11:13 AM|Cathy Zou|LINK
Hi wmec
'}' missing in your code
Correct code should as below
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(function () { var isreadonly = getUrlParameter("readonly"); if (isreadonly == "y") { $("#mybutton").prop("disabled", true); $("#tb_birth").datepicker({ showOn: 'button', }); } }); </script>
DatePicker reference:
https://api.jqueryui.com/datepicker/
Best regards
Cathy
Contributor
6382 Points
5678 Posts
Problem to correct JavaScript
Jan 08, 2018 08:10 AM|wmec|LINK
Hi,
How to correct it below?
https://app.box.com/s/j320dazyellbc8m9rulvrpagwr3nf7n3
HuaMin Chen
Star
8650 Points
2882 Posts
Re: Problem to correct JavaScript
Jan 09, 2018 11:13 AM|Cathy Zou|LINK
Hi wmec
'}' missing in your code
Correct code should as below
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(function () { var isreadonly = getUrlParameter("readonly"); if (isreadonly == "y") { $("#mybutton").prop("disabled", true); $("#tb_birth").datepicker({ showOn: 'button', }); } }); </script>
DatePicker reference:
https://api.jqueryui.com/datepicker/
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.