I have a tab structured view which consists of 5 different tabs. the content in all the 5 tabs were same, So i have reused the code and rendered the same code multiple times using knockout js. the problem here is that I have a datepicker control too. As the controls are duplicated the datepickers were also duplicated when rendered in DOM. Due to the duplication of datepicker IDs in browser, whatever the datepicker is selected the date is updated in first tab datepicker.

So can anyone help me how to solve this issue.

I see no code to examine BUT your claim you reused the code most likely means that each tab is not unique and may in fact be why they all change or show the same date/data. Any chance we can see that code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.