I have a simple ajax response which contain null value of response
my problem is how to cast null response value set to sign string "-"
$(row).find("#_WATER_FLOW_AMOUNT").text(obj.WATER_FLOW_AMOUNT null: ?? "-".tostring());
Hi ruben,
Refer below code.
$(row).find("#_WATER_FLOW_AMOUNT").text(obj.WATER_FLOW_AMOUNT == null ? "-" : obj.WATER_FLOW_AMOUNT);
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.