We help IT Professionals succeed at work.

BOOTSTRAP JS ISSUES

I have an "datepicker" widget placed  inside a bootstrap application utilizing the accordion feature.   I have been attempting to place a datepicker inside the collapsible section with no success.  

There seems to be a conflict in the order of the scripts or their placement.   The scripts for the expand/collapse seem to override one another depending on where they are placed.   The code I am working with is contained in the attached "Master Page".

I require assistance in getting both the datepicker to work inside of the collapsible section.
Site.master
EXP-COL.aspx
Comment
Watch Question

Duy PhamFreelance IT Consultant

Commented:
It seems that panels (using 'div' elements) in your EXP-COL.aspx is not properly formed, which might cause unexpected behaviors of accordion feature.
Duy PhamFreelance IT Consultant

Commented:
One more thing, in your Master page, you use $('#datepick').datepicker(...), it might not work when your control is placed inside your content page since control id will be adjusted with something like "ctl00_ContentPlaceHolderID_datepick".

You'd better use $('.datepick').datepicker(...) instead.

Author

Commented:
I tried as you suggest "no joy"    I tested the code outside of the master page independently and it functions correctly.  I keep think it is a script conflict or priority issue.
Top Expert 2015
Commented:
The proper troubleshooting technique in this case would be to work backward from the source of the rendered page. When you have <head runat="server"> in the master, that allows asp.net to add script, meta tags and css to the head section. You never know what will be in there until the page is rendered.

Author

Commented:
Was able to identify problem working backward through program.