Skip to content

Uncaught TypeError: Cannot read property 'apply' of undefined #44

@sarvap-praharanayuthan

Description

@sarvap-praharanayuthan

Used along with Blueimp/Fileupload.

Code:

callbacks: {
     ajaxContentAdded:function () {
          setTimeout(function () {
               imageDropdown();
          },500);
     }
}

function imageDropdown() {
    $(".imagesListDropdown").chosen();
}

HTML part:

<select id="cover" class="imagesListDropdown form-control" required name="cover">
// populated with PHP from DB array
<?php echo "<option value='{$row['id']}' data-img-src='{$path}'>{$row['title']}</option>"; ?>
</select>

Resources loaded:
jQuery 2.1.0, Bootstrap 3.3.7.

screenshot 60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions