forEachItem

iterator, calls a user-defined handler for each item

void forEachItem(function handler);

Parameters

handlerfunctiona user-defined function, will take the item id as an argument

Example

myForm.forEachItem(function(name){
    // your code here
});

Details

the handler function takes the following arguments:

  • name - the item's name
  • value - the value of a radio button
Back to top