Senzeye

Senzeye

  • NA
  • 226
  • 146.6k

Jquery DateTimePicker not working Updatepanel with masterpag

Mar 8 2016 12:08 AM
I put the bootstrap tab menu after that i place datetimepicker code but not working datetime picker properly . above i used the updatepanel
 
datetimepicker code use before the bootstrap function tab menu not work properly
 
please how to solve this problem?
 
  1. <meta charset="utf-8"/>    
  2.     <meta name="viewport" content="width=device-width, initial-scale=1"/>    
  3.     <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>    
  4.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>    
  5.     <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>    
  6.        
  7.     
  8.     
  9.     
  10.          <script type="text/javascript">    
  11.        function pageLoad() {    
  12.            maintainSelectedTab();                      
  13.            
  14.        }    
  15.        function maintainSelectedTab() {    
  16.     
  17.            var selectedTab = $("#<%=hfTab.ClientID%>");    
  18.            var tabId = selectedTab.val() != "" ? selectedTab.val() : "tab1";    
  19.            $('#dvTab a[href="#' + tabId + '"]').tab('show');    
  20.            $("#dvTab a").click(function () {    
  21.                selectedTab.val($(this).attr("href").substring(1));    
  22.                    //replace("#", ""));    
  23.                //substring(1));    
  24.            });    
  25.        }    
  26.           </script>    
  27.     
  28.         
  29.      <meta http-equiv="content-type" content="text/html; charset=utf-8"/>    
  30.     <link rel="stylesheet" type="text/css" href="Calender/jquery.datetimepicker.css" />    
  31.     <script type="text/javascript" src="Calender/jquery.js"></script>    
  32.     <script type="text/javascript" src="Calender/jquery.datetimepicker.js"></script>    
  33.        
  34.      <script type="text/javascript">    
  35.     
  36.     
  37.     
  38.          $(function () {    
  39.     
  40.                $("input[id$='txtCheckOut']").datetimepicker({    
  41.                  format: 'd/m/Y',    
  42.                  timepicker: false,    
  43.                                   
  44.              });    
  45.     
  46.               
  47.          });    
  48.     
  49.     </script>    
 

Answers (7)