I am looking to validate the dropdown checklist based on data stored in a database.
Here is my script:
<script>
function myValidationFunction(parameter) {
$(document).ready(function () {
$('#ContentPlaceHolder1_s10').val(parameter);
$('#ContentPlaceHolder1_s10').dropdownchecklist('refresh');
$('#ContentPlaceHolder1_s10').dropdownchecklist();
});
}
</script>
This is my C# page:
int[] parameterArray;
parameterArray = new int[] { 1,2,3 };
pl.qid = questionID;
Profile.questionid.questionID = questionID;
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "tmp", "<script type='text/javascript'>myFunction("+para+");</script>", false);
I have been struggling to find a solution. Can anyone provide guidance on how to:
Verify the dropdown checklist based on values from a database?
Thank you in advance!
I am currently using the following dropdown checklist plugin: