Adding inline styles to html element using JQuery

  1. This can be done by using the css JQuery function. Read more
  2. An example is
    $("#myElement").css('border','1px solid #FF0066');
  3. The example above will produce the following
    <input style="1px solid #FF0066" id="myElement" />

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.

Menu