Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.tooltip[id*="_UI_A_"]').each(function(){
- console.log(this.getAttribute('id'));
- });
- P2000_UI_A_5000_0
- P2000_UI_A_5000_1
- P2000_UI_A_5000_2
- P2000_UI_A_5000_3
- P2000_UI_A_5065
- P2000_UI_A_5100
- P2000_UI_A_5000
- P2000_UI_A_5065
- P2000_UI_A_5100
- var allIds = $('.tooltip[id*="_UI_A_"]').map(function () {
- return this.id.split('_').slice(0, 4).join('_');;
- }).get();
- var uniqueIds = $.grep(allIds,function(v,k){
- return $.inArray(v,allIds) === k;
- });
- $.each( uniqueIds, function(index, value){
- // do what you want with value
- console.log(value);
- });
- $.unique( $('.tooltip[id*="_UI_A_"]').map(function(){
- return (this.id.split('_').slice(0,4).join('_');
- }).get() );
- $('.tooltip[id*="_UI_A_"]:not(radio)').each(function(){
- console.log(this.getAttribute('id'));
- });
- $('.tooltip[id*="_UI_A_"]').filter(function(){
- return this.id && this.id.match(/_UI_A_d+$/);
- });
- var ids = [];
- $('.tooltip[id*="_UI_A_"]').each(function(){
- if (this.id && this.id.match(/_UI_A_d+$/)) {
- ids.push(this.id);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement