Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var leSelect = $('#my-select'),
- noOfoptions = leSelect.children().length;
- setInterval(function() {
- if(leSelect.children().length > noOfoptions) {
- console.log('boom. new option has been added');
- }
- }, 10000); // 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement