Textbox ontextChanged event is not triggered...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madhanmss
    New Member
    • Jan 2007
    • 3

    Textbox ontextChanged event is not triggered...

    Hi,

    i have two textboxes to enter the start and end dates. I am using javascript calendar to populate these text boxes. Based on the chosen date values, i need to filter a treeview control.

    The problem is, the ontextchanged event of the textbox is not firing, when the date is chosen from the javascript calendar. If you enter the date directly into the textbox, the event is firing.

    I need to find out how to fire the ontextchanged event when the date is chosen from the javascript calendar. Please help.

    Madhan.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    textboxes in webpages don't fire the "text changed" event unless they "lose focus" after changing the value.
    What you could maybe do as part of your javascript, is after filling in the date, call a focus() and blur() on that textbox control, I think that will trigger the event?

    Comment

    Working...