Espero y te funcione ...
Código Javascript
:
Ver original$( "input[name=xD]" ).click(function(e){
// --> SelectInput --> $('input[name=Rad1us]')
// --> SelectInputArray --> $('input[name="data[Modelo][Valeria]"]')
var getNames = '';
// :input --> Select all input or input type text == input:text
$(':input').each(function() {
var nameInput = $(this).attr('name'),
lastBracket = nameInput.split('[').pop().replace(']', '');
getNames += lastBracket +' ';
});
console.log(getNames);
e.preventDefault();
});
-----------------------------------------------
Código HTML:
Ver original<input type="text" name="data[Rad1Us][Valeria]" /> <br /> <input type="text" name="data[gracias][thanks]" /> <br /> <input type="text" name="data[por][for]" /> <br /> <input type="text" name="data[todos][all]" /> <br /> <input type="text" name="data[momentos][moments]" /> <br /> <input type="button" name="xD" value="u_u" />
:'c ...