Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

How to change span text when select item #24

Open
ZivHsu opened this issue Apr 20, 2017 · 1 comment
Open

How to change span text when select item #24

ZivHsu opened this issue Apr 20, 2017 · 1 comment

Comments

@ZivHsu
Copy link

ZivHsu commented Apr 20, 2017

If I want to change span text when I select the item how to do it ?

13213

Best Regards,
Ziv

@alexpahomi
Copy link

$(function() {
    $('input[name="your_input_name"]').daterangepicker({
        showDropdowns: true, /*your settings here, show dropdown use for demo*/
    }, 
    function(start, end, label) { /*notice the label*/
        $('input[name="your_input_name"] span').html(label);
    });
});

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

No branches or pull requests

2 participants