You want to adjust the css(), not the html()
$(this).css('text-decoration', 'underline');
Summer Sale! All accounts are 50% off this week.
when click on
Off topic again, but @atif123 I noticed you are new here to the forum, Welcome.
Also later on to keep it underlined, say you have to leave and come back later to finish, you probably need another control for a flag, like a checkbox. Then if the checkbox is checked trigger above code to show underlined.
And how are you saving to database. Anyway just post a new question when you get to next step.
Please or to participate in this conversation.