smithmrk
asked on
Javascript - Fill Textbox within ModalPopupExtender
OK, So I have a Checkbox and a Textbox within a ModalPopupExtender Panel.
When the operator clicks the Checkbox...I want to put a value into the Textbox.
For some reason...this code is NOT working:
function GenTrackNumber()
{
var today = new Date();
var mm = today.getMonth()+1;
var dd = today.getDate();
var yyyy = today.getFullYear();
if(document.getElementById ('<%=chk_G enerateTra ckingNumbe r.ClientID %>').checked)
{
document.getElementById('< %=txt_Trac kingNumber .ClientID %>').value==mm+dd+yyyy;
}
else
{
document.getElementById('< %=txt_Trac kingNumber .ClientID %>').value=="";
}
}
Thanks,
Mark
When the operator clicks the Checkbox...I want to put a value into the Textbox.
For some reason...this code is NOT working:
function GenTrackNumber()
{
var today = new Date();
var mm = today.getMonth()+1;
var dd = today.getDate();
var yyyy = today.getFullYear();
if(document.getElementById
{
document.getElementById('<
}
else
{
document.getElementById('<
}
}
Thanks,
Mark
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Mark