www.webdeveloper.com
Results 1 to 2 of 2

Thread: jQuery function for loop not working

  1. #1
    Join Date
    Apr 2014
    Posts
    8

    Unhappy jQuery function for loop not working

    The below function 'for' loop not working. can anybody tell me the reason.

    $(document).ready(function(){
    $('#LM_MM_Plus_Icon').click(function(){
    for(i = 0; i < 100; i++) {
    $('#LM_MM_Plus_Icon_Block').css('display', 'block');
    $('.modal-dialog').append('<div id="LM_MM_Plus_Icon_Block'+ i +'" />');
    }
    });
    });

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles