Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery change event not working on yearpicker #9

Open
tohabin opened this issue Jul 26, 2023 · 1 comment
Open

jQuery change event not working on yearpicker #9

tohabin opened this issue Jul 26, 2023 · 1 comment

Comments

@tohabin
Copy link

tohabin commented Jul 26, 2023

jquery change event / javascript onchange event is not triggered when year is selected using yearpicker.
Following code is jquery change() event code.

$("#myInputFeild").change(function () {
        console.log("yearPicker not working here");
       
    });
@tohabin
Copy link
Author

tohabin commented Jul 26, 2023

my solution: add a extra function: in script

$(document).on('click', '.yearpicker-items', function () {

        let SelectedValue = $(this).html();
        $("#myInputFeild").val(SelectedValue).trigger('change');
        
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant