Skip to content
  • Home

My PHP / Javascript / JQuery notes

My programming notes made during system developments

Posted in Javascript

Javascript – Al list of all controls on a form

Posted on December 6, 2018 by edleightonprogrammer

function processForm(form) {

var control, controls = form.elements;

for (var i=0, iLen=controls.length; i<iLen; i++) {

control = controls[i];

console.log(control.name + ‘: ‘ + control.value);

}

}

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
Like Loading...

Related

Unknown's avatar

Author: edleightonprogrammer

View All Posts

Post navigation

Previous Post MySQL – Retrieving data for EasyUI datagrid
Next Post Javascript – Disable ALL controls on a form

Categories

  • Bootstrap (4)
  • charts.js (1)
  • colorbox (3)
  • DOM (8)
  • EasyUI (3)
  • Font awesome (4)
  • HTML (12)
  • Javascript (34)
  • JQuery (27)
  • JSON (7)
  • NOTY (3)
  • PHP (29)
  • SQL (10)
  • zebra_form (17)
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Reblog
  • Subscribe Subscribed
    • My PHP / Javascript / JQuery notes
    • Already have a WordPress.com account? Log in now.
    • My PHP / Javascript / JQuery notes
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d
    Design a site like this with WordPress.com
    Get started