I have the following inside of our third part application, where I can write custom javascript or jquery code against the web pages, but I can not modify the markup:
<input id="OrderLiveOrder_0e0052d6-9924-4774-b50d-d7ef364d744a_MultiChoiceOption_0" type="checkbox">
I am trying to set the above input field, which is of type checkbox, as required now ( so I need to make sure that the user check the checkbox ). I tried this:
$('input[id^="OrderLiveOrder_"]').required;
based on this link https://www.w3schools.com/jsref/prop_checkbox_required.asp but it did not apply the validation. I also tried this:
$('input[id^="OrderLiveOrder_"]').required = true;
but it did not fix the issue. So, can anyone advice on this?