Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $inputs = $('[name]'), names = [], namesDuplicados = [];
- $.each($inputs, function(index, value){
- var $this = $(value);
- if(names.indexOf($this.attr('name')) != -1){
- namesDuplicados.push($this.attr('name'));
- }
- names.push($this.attr('name'));
- });
- console.log(namesDuplicados);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement