Posted on: 8/7/2015 11:05:07 AM | Views : 760

Hi,
I have stored BrandId as 2;4;5
It is in the checkboxlist value field.
In my jquery function
var brandId = []; brandId = data.d.BrandId.split(';'); for (var i = 0; i < brandId.length; i++) { //How to write a code to select checkbox based on this brandId Value } In Browser
<input id="MainContent_MainContent_chklstBrand_0" type="checkbox" name="ctl00$ctl00$MainContent$MainContent$chklstBrand$0" value="2"><label for="MainContent_MainContent_chklstBrand_0">Brand2</label> <input id="MainContent_MainContent_chklstBrand_1" type="checkbox" name="ctl00$ctl00$MainContent$MainContent$chklstBrand$1" value="4" Go to the complete details ...