I have a difficult situation with html and javascript. My html page allows user to select text and highlight it with colors. Now I want to save the state into database to sh
You can use .serialize() method which return text string in standard URL-encoded notation. it has selected individual form element such as , etc..so push serialized return string in DB using $(form).serialize(); and for highlighting the changes check Old $(form).serialize(); return value with New $(form).serialize(); return value.