Time picker working in both rails and ajax

Hi all,
Am new to ruby on rails .I have some time pickers working alone in
rails and when am using ajax it's not working . Could any one please
give me a good solution for this problem .

Regards
William S