KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to use jQuery UI datepicker in one of my text inputs. This one is in a dialog modal. In fact, I can call datepicker in the normal document text inputs and i got my calender normally but I can't do that in dialog modal text inputs (after clinking inside modal text input I got nothing without any JavaScript error). This is my code to call datepicker : $(function() { $("#MytextInputID").datepicker({ dateFormat: 'dd/mm/yy' }); ); I tried changing css .ui-datepicker Z-index properties but I still got nothing. Do you have tips to fix this problem ? Regards, in my_page.html i have function openSaisieARModal() { window_select_CodeAgence = new showModalWindow('SaisieARModal', 500); } And i use this script var showModalWindow=function(id, width) { var newId=id+'Copy'; this.id=newId; var previousNode=document.getElementById(newId); if(previousNode!=null) { previousNode.parentNode.removeChild(previousNode); } var rootNode=document.getElementsByTagName('body')[0]; this.node=document.createElement("div"); rootNode.appendChild(this.node); this.node.setAttribute('id', newId); this.node.setAttribute('title', document.getElementById(id).getAttribute('title')); this.node.innerHTML=document.getElementById(id).innerHTML; if(width==null) { width=400; } $('#'+newId).dialog({autoOpen: true, modal: true, width:width }); this.closeWindow=function() { $('#'+this.id).dialog('close'); } this.centerContent=function() { this.node.style.textAlign='center'; } this.center=function() { $('#'+this.id).dialog('option', 'position', 'center'); } } and this is the modal HTML code in my_page.html <div style="display:none;"> <div id="SaisieARModal" title="DATE"> <table class
Tags (comma-separated)
Save Edits
Cancel