Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7049451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:01:00+00:00 2026-05-28T03:01:00+00:00

can’t find an answer to this one… I have a form that detects changed

  • 0

can’t find an answer to this one…

I have a form that detects changed fields via jquery and adds edited if it’s edited and adds editable if it’s not edited.

On a button click I want it to find all the fields with class ‘edited’ and store them to be sent via ajax to a php file to update the database. I built the PHP file and can pass ALL the form fields, but I only want to pass the changed ones. This specific instance is being used for a “My Account” page which will update their email, info, password, etc.

Here’s the loop to find them all:

if ($(".edited").length > 0) {
     $(".edited").each(function() {
     $(this).WhatToDoNow();
}); 

What’s the way to do this with jQuery.ajax? I need each to be identifiable by the PHP file. Also, is it bad not to md5 the old password before sending it over to the PHP file?

Does it matter if we’re using json or not? What’s best practice?

Thanks guys for all your help!!! This community rocks.

  • Brenden
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:01:01+00:00Added an answer on May 28, 2026 at 3:01 am

    So long as you’re actually submitting the form (not just reading the individual values and sending them to the server), you can just set the inputs that aren’t edited to have the “disabled” attribute true. Disabled form elements aren’t submitted to the server.

    Honestly, though, I think it’s better to just send the entire form to the server and process the changed//not changed logic there. What happens if the user opens a second form and submits that one, and then goes back to the first? Or if javascript is disabled?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Can anyone help me trying to find out why this doesn't work. The brushes
Can I open my custom developed form [instead of native one] when user opens
can any one tell me how can change this java code into objective c.is
Can somebody point me to a resource that explains how to go about having
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
Can a LINQ enabled app run on a machine that only has the .NET
Can you suggest some good MVC framework for perl -- one I am aware
Can we have two main() functions in a C++ program?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.