0
votes

I've read all the SO topics on this, and tried numerous things. Even the jQuery Datepicker information page at http://jqueryui.com/datepicker/#default shows the behavior I don't understand.

a. Click in the input field > datepicker pops up b. Select a date > visually, input field appears to show your selected date c. However, the "value" attribute for the input field does not change to the selected date

What am I missing, please? Thanks

1
Where is your code? How do you know the value is no the date? - haxtbh
Are you inspective DOM and expecting the value attribute to change..? :/ - T J
@haxtbh I was just using the Datepicker demo page to show code since it exhibits the same behavior. - Paul Kaiser
@TJ Yes, that's what I was checking - Paul Kaiser
@PaulKaiser you can't see a change in attribute, which is displayed while inspecting the DOM. Internally the property value will change, which you can check by accessing the value via js... those are different things... - T J

1 Answers

0
votes

Firebug always show the default value of any html element. It never changes value when reflects on Client side. However when u will submit or serialize the form, the updated value will pass to the $_POST.