Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#e1").select2( 'data',
- sampleArray
- );
- var preload_data = [
- { id: 'user0', text: 'Disabled User', locked: true}
- , { id: 'user1', text: 'Jane Doe'}
- , { id: 'user2', text: 'John Doe', locked: true }
- , { id: 'user3', text: 'Robert Paulson', locked: true }
- , { id: 'user5', text: 'Spongebob Squarepants'}
- , { id: 'user6', text: 'Planet Bob' }
- , { id: 'user7', text: 'Inigo Montoya' }
- ];
- for (var a in matchs)
- {
- var variablesLable = matchs[a];
- var variableyValue = matchy[a];
- // sampleArray = [{text:variablesLable,value:variableyValue}];
- sampleArray.push( { text: variablesLable, value:variableyValue} );
- }
Add Comment
Please, Sign In to add comment