Generate N Number Of Table Rows Depending On Value Of Input Jquery
Solution 1:see your updated fiddle: http://jsfiddle.net/fq42seff/3/ i first added the then i changed your js the following:
next, we extend your change function:
last but not least, enable/disable the first 4 input boxes:
the last part - the enabling/disabling could be splitted and extend the add/remove functions - this would make them get run only when needed. right now, it gets executed on every value change. but i guess, you can figure out the rest by yourself... Solution 2:I added a grid of checkboxes depending on the number of floors also upon generating these checkboxes i put an attribute for each checkboxes depending on which row they are in. The span text or that row will be the value of the checkboxes for that row. With the help of
he came up with this fiddle For code betterment feel free to update the fiddle to help others Solution 3:Correct me if I am wrong. Here is my for loop.
|
Post a Comment for "Generate N Number Of Table Rows Depending On Value Of Input Jquery"