Featured post
datepicker - SimpleModal w/ Date Picker in a "Wizard" Scenario -
i'm using simplemodal (great library eric martin) create "wizard" users enter data.
i'm making wizard work replacing contents of modal's div...
ie:
when modal displayed move contents of page1 modaldiv. when user clicks next, move contents of modaldiv page1 , move contents of page2 modaldiv.
this works great, problem have having i'm using datepicker on page2. reading simplemodal documentation initializing datepicker in "onshow" callback... works great if datepicker on page1, not work if datepicker on page 2.
how re-initialize datepicker when load page 2?
well crap.. right when finished typing had idea solution, , worked (and it's better).
i put page1 div , page2 div in modal div , hide/show page1 div , page2 div instead of moving contents around...
kiss principle... gotta love it...
- Get link
- X
- Other Apps
Comments
Post a Comment