Lookup field disabled.
$("#transactioncurrencyid_enityname").prop("disabled", true);
$("#transactioncurrencyid_entityname").parent().find('.launchentitylookup').prop("disabled", true);
$("#transactioncurrencyid_entityname").parent().find('.clearlookupfield').prop("disabled", true);
Date field:
$('#new_starttimedate_datepicker_description').val(null);
$('#date').next().children().prop("readonly", true);
$("#new_requesttype option:not(:selected)").prop("disabled", true);
$.ajax({
url: "",
}).fail(function (jqXHR, textStatus, error) { })
.done(function (result) {
if (result != null) {
var dropdown = $("#new_fieldname");
dropdown.empty();
var optionArray = [];
$.each(result, function (index, options) {
var option = $('<option>').text(options.new_name).val(options.gs_lookupid);
optionArray.push(option);
});
$("#new_fieldname").html(optionArray);
dropdown[0].selectedIndex = -1;
}
});
No comments:
Post a Comment