Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="radio" id="name" />
- <input type="radio" id="name" />
- <input type="radio" id="name" />
- <input type="radio" id="last" />
- <input type="radio" id="last" />
- <input type="radio" id="name1" />
- <input type="radio" id="name2" />
- <input type="radio" id="name3" />
- <input type="radio" id="last1" />
- <input type="radio" id="last2" />
- $('[id]').each(function(){
- var ids = $('[id="'+this.id+'"]');
- if(ids.length>1 && ids[0]==this)
- $(this).attr('id', $(this).attr('id') + i);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement