Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3359240
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:50:54+00:00 2026-05-18T02:50:54+00:00

So i have this picker: http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/ Now, how can I prepend the date/daterange you

  • 0

So i have this picker:

http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/

Now, how can I prepend the date/daterange you choose into div element #viewCalender, when you chose a date?
I tried do:

        <script type="text/javascript"> 
            $(function(){
                  $('#rangeA').daterangepicker({
                  arrows:true,
                  onChange: function(){
$('#calenderView').prepend('test');
}
                  }); 
             });
        </script>

But It prepends “test” twice into #calenderView, even tried with just alerts, and i get two alerts, after i picked a date, which I do not understand why??? And how can i prepend the date/daterange into it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:50:55+00:00Added an answer on May 18, 2026 at 2:50 am

    Posting a complete html document that one could copy and try immediatly would help a lot.

    I can only guess, but I’d say:

    $(function() {
        $('#rangeA').daterangepicker({
            arrows: true,
            onChange: function(event) {
                // try this one
                event.stopPropagation()
                $('#calenderView').prepend('test');
                // and/or this
                return false;
            }
        });
    });
    

    Edit

    I read the manual, and there it is stated that onChange is a callback that „executes whenever the date input changes (can happen twice on range selections).“

    http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/

    I set a breakpoint and debugged that script using Firebug. And whoopee, onSelect (line 69) fired twice, and because of that options.onChange (line 90) is fired twice.

    Maybe you shout use onClose instead of onChange:

    $(function() {
        $('#rangeA').daterangepicker({
            arrows: true,
            onClose: function(event) {
                $('#calenderView').prepend('test');
            }
        });
    });
    

    See: http://jsfiddle.net/3zM3W/10/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that lives at the following domain: http://www.example.com/PROJECT/ within project, there
Please have a look on this application http://itunes.apple.com/app/yowza-mobile-coupons/id312021877?mt=8 I just want to add custom
I am trying to setup two date pickers like this http://jqueryui.com/demos/datepicker/#date-range . But if
I am currently using this JQuery datepicker from http://www.eyecon.ro/datepicker/ . I have looked through
I have followed a tutorial over at http://www.yougli.net/android/a-photoshop-like-color-picker-for-your-android-application/ But couldn't find a way of
Have this query: SELECT HOUR( DATE ) AS hr, COUNT( * ) AS cnt
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
We have this software that has a webservices component. Now, the administrator of this
Im using the color picker here: http://blog.meta100.com/post/600571131/mcolorpicker Im using code shown in example 3.
I am showing the birthday option and have used the jquery ui date picker.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.