Garden Garden - 5 months ago 40
jQuery Question

Repeater Widget - jQuery detect does not work

The below code works fine with other form element other than "repeater widget" elements in Laravel -> octobercms -> backend ->plugin -> form

$(document).ready(function() {



When I hover over normal input fields in the form, I get the alert message. But when I use add repeater elements that contains input field, mouse over them does not trigger alert.

Kindly help.



Try using event delegation. There isn't really enough known as to why your approach isn't working unless the elements are added after your code runs such as through ajax