Hi
I want if value of Dropdown is Delivered then user must enter Date in Date of Delivery using Javascript
*
Select Status
Return Dispatched
Return Delivered
Thanks
Hi
I want if value of Dropdown is Delivered then user must enter Date in Date of Delivery using Javascript
*
Select Status
Return Dispatched
Return Delivered
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramco RamcoPosted Oct 14, 2022, 11:39 AM
Hi Jignesh
I am trying below code but it is not working
var theDate = document.getElementById("txtReceivedOn").value;
if (ddlStatus.val() === "Return Delivered") {
$("#txtReceivedOn").attr("required", true);
valid = false;
}
Thanks
Ramco RamcoPosted Oct 14, 2022, 11:28 AM
Hi Jignesh
If User does not enter Date then i want to display message "Invalid Date". Similar to like below
if (ddlStatus != "Delivered" && txtRemark.length < 5) {
bootbox.alert({
size: 'small',
title: 'Error!',
message: 'Please Enter Remarks'
});
valid = false;
}
Thanks
Jignesh KumarPosted Oct 14, 2022, 11:23 AM
Hello,
Please try this one,
Ramco RamcoPosted Oct 14, 2022, 10:20 AM
Hi Jignesh
In my below code how it can be done. Data of Delivery should not be Blank if Status is Delivered
Thanks
Jignesh KumarPosted Oct 14, 2022, 6:36 AM
Hello Ramco,
Please test this one will work for you,