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" />