Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi To!
I am developing webbased App in that there is web form in which i want 2 Partioning uppper one contain Dynamic Check Boxes and lower on also,based on back-end(In That There is table (ProductMaster,There is Column "CatogoryId")) If catogary is 2 then all "product type" come in Upper one,and if it is 3 then All Product Type Come in Lower one in Front-end.
Please help me am new in it.
Thanks & Regards
Posted
Updated 10-Jul-13 21:33pm
v2

1 solution

Try this from JavaScript.
You have to get product type list. Run a loop to build html for product types check boxes and append into container div.
JavaScript
var builder ="";

for (var j = 0; j < product_types.length; j++) {                
     builder = builder + "<input Text='" + product_types[j].Value + "' Value='" + product_types[j].Key + "' id='" + product_types[j].Value+ "' type='checkbox' onclick='FunctionName();' /> " + product_types[j].Value;               
}

$("#ContainerDiv").append(builder);


Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900