diff --git a/js/entity_browser.modal.js b/js/entity_browser.modal.js
index 2586cfe..beb9b7d 100644
--- a/js/entity_browser.modal.js
+++ b/js/entity_browser.modal.js
@@ -13,7 +13,7 @@
   Drupal.AjaxCommands.prototype.select_entities = function (ajax, response, status) {
     var uuid = drupalSettings.entity_browser.modal.uuid;
 
-    $('input[data-uuid="' + uuid + '"]').trigger('entities-selected', [uuid, response.entities])
+    $(':input[data-uuid="' + uuid + '"]').trigger('entities-selected', [uuid, response.entities])
       .removeClass('entity-browser-processed').unbind('entities-selected');
   };
 
@@ -33,7 +33,7 @@
           }
 
           if (typeof fn === 'function') {
-            $('input[data-uuid="' + instance.uuid + '"]').not('.entity-browser-processed')
+            $(':input[data-uuid="' + instance.uuid + '"]').not('.entity-browser-processed')
               .bind('entities-selected', fn).addClass('entity-browser-processed');
           }
         });
diff --git a/js/entity_browser.modal_selection.js b/js/entity_browser.modal_selection.js
index c901f04..6783b42 100644
--- a/js/entity_browser.modal_selection.js
+++ b/js/entity_browser.modal_selection.js
@@ -11,7 +11,7 @@
   // We need to access parent window, get it's jquery and find correct modal
   // element to trigger event on.
   parent.jQuery(parent.document)
-    .find('input[data-uuid*=' + drupalSettings.entity_browser.modal.uuid + ']')
+    .find(':input[data-uuid*=' + drupalSettings.entity_browser.modal.uuid + ']')
     .trigger('entities-selected', [drupalSettings.entity_browser.modal.uuid, drupalSettings.entity_browser.modal.entities])
     .unbind('entities-selected').show();
 
