Skip to content

Instantly share code, notes, and snippets.

@martinos
Created September 19, 2017 14:27
Show Gist options
  • Save martinos/19c89046cb9f6a311daae26180342c04 to your computer and use it in GitHub Desktop.
Save martinos/19c89046cb9f6a311daae26180342c04 to your computer and use it in GitHub Desktop.

Display input names with Boostrap 3

If you have tooltips installed you can get display all the form input names, by pasting this snippet in the console.

var items = $("form :input").map(function(index, elm) {
    $(elm).tooltip({title: elm.name, trigger: "manual"}).tooltip('show');
    return {name: elm.name, type:elm.type, value: $(elm).val()};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment