Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 10-Jul-13 21:30pm
Arifa S508
Edited 10-Jul-13 22:33pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
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.
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100