Defect #34167

when i put if condition and update any field the if condition field lost data

Added by moustafa elbeda 9 months ago. Updated 8 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Invalid Affected version:


$(document).on('click', '.update', function() {
var user_id = $(this).attr("id");
    url: "fetch_single.php",
    method: "POST",
    data: {
        user_id: user_id
    dataType: "json",
    success: function(data) {
        $('.modal-title').text("تعديل الحالة");

        if ($("#note").val() !== '') {
            $("#note").prop("disabled", true);
        } else {

            $("#note").prop("disabled", false);

I am using a JQuery model form with Ajax to allow users to enter new values and update in text area I put condition statement depend on field value NULL OR NOT NULL after success but when update any field
the condition field(note) lost data


#1 Updated by Go MAEDA 9 months ago

  • Description updated (diff)

#2 Updated by moustafa elbeda 9 months ago

when i put if statement filed note is cleared after update any field

#3 Updated by moustafa elbeda 9 months ago


the issue is solved replace disable to readonly

#4 Updated by Go MAEDA 9 months ago

  • Category deleted (Issues)
  • Resolution set to Invalid

Please use forums for questions. Issues are used to report a bug, suggesting a new feature, or submitting a patch. Reading How to request help may be helpful for you.

#5 Updated by Go MAEDA 8 months ago

  • Status changed from New to Closed

Also available in: Atom PDF