Skip to main content
edited body
Source Link
Hugo Tostes
  • 412
  • 4
  • 13

try this:

$("input[type=text]").each(function(){
   $('#ins').html($(this).attr('name') + " <br>");
});

with this code, you will get the name attribute of all input in the page. And i put a '
'"br" just to break a line.

try this:

$("input[type=text]").each(function(){
   $('#ins').html($(this).attr('name') + " <br>");
});

with this code, you will get the name attribute of all input in the page. And i put a '
' just to break a line.

try this:

$("input[type=text]").each(function(){
   $('#ins').html($(this).attr('name') + " <br>");
});

with this code, you will get the name attribute of all input in the page. And i put a "br" just to break a line.

Source Link
Hugo Tostes
  • 412
  • 4
  • 13

try this:

$("input[type=text]").each(function(){
   $('#ins').html($(this).attr('name') + " <br>");
});

with this code, you will get the name attribute of all input in the page. And i put a '
' just to break a line.