Avatar of niceguy971
niceguy971
 asked on

C# and jQuery

I have in my web Application the following code ..so it's easy to Add attribute to the TextBox in server-side code.

My question_#1: "How to add  attribute to the TextBox in client-side code using jQuery?".

My question_#2: "How to remove  attribute from the TextBox in client-side code using jQuery?".


Server side code below:

 txtTextBox1.Attributes.Add("placeholder", "First_Name"); // add Attribute to TextBox

txtTextBox1.Attributes.Remove("placeholder");  // to remove Attribute

Thanks
C#AJAX.NET Programming

Avatar of undefined
Last Comment
niceguy971

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
kswathi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
niceguy971

ASKER
Thanks
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck