Hi,
I have a form that is dynamically generated from the db like this:
item1 checkbox1 qty1
item2 checkbox2 qty2
item3 checkbox3 qty3
I have to verify the qty fields to ensure they are positive integer only when the corresponding checkbox checked. For example, if checkbox1 has been checked, then I need to check whether qty1 is an integer greater than 0. No validation for qty1 is need if the checkbox1 is not checked. How to do this?
Thanks!
I have a form that is dynamically generated from the db like this:
item1 checkbox1 qty1
item2 checkbox2 qty2
item3 checkbox3 qty3
I have to verify the qty fields to ensure they are positive integer only when the corresponding checkbox checked. For example, if checkbox1 has been checked, then I need to check whether qty1 is an integer greater than 0. No validation for qty1 is need if the checkbox1 is not checked. How to do this?
Thanks!