Skip to content

Instantly share code, notes, and snippets.

@darkcolonist
Created August 18, 2015 03:20
Show Gist options
  • Save darkcolonist/5bc8dc25c943fecc9c74 to your computer and use it in GitHub Desktop.
Save darkcolonist/5bc8dc25c943fecc9c74 to your computer and use it in GitHub Desktop.
display all hidden fields in the page using jquery and jqueryui
{
showAllHidden : function(){
var table = $("<table>");
for (var i = 0; i < $("[type=hidden]").length; i++) {
table.append(
"<tr><td>"+$("[type=hidden]")[i].name+"</td><td><strong>"+$("[type=hidden]")[i].value+"</strong></td></tr>"
);
};
$("<div>").append(table)
.dialog({
title: "debug: showing all hidden inputs"
, close: function(event, ui){
$(this).dialog("close");
$(this).remove();
}
, position: { my: "left top", at: "left top", of: "body" }
, width: 450
, height: 250
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment