How to apply css using JQuery?

    Younger Kid Asked on December 25, 2015 in Jquery.
    Add Comment
  • 1 Answer(s)

      To apply display none to specific element using Class or ID

      For ID :::  $('#ial-college').css('display', 'none');
      For Class ::  $('.ial-college').css('display', 'none');

      To change the background color to specific element using Class  or ID

      $('#ial-college').css('display', '#ffffff');
      $('.ial-college').css('display', '#ffffff');

      To target and apply CSS to label using for attribute

      For example i have a label with for attribute ID #ial_cl Like

      <label name="so and so" id="so and so" for="ial_cl">

      Here is the Jquery to apply CSS

      Younger Kid Answered on December 25, 2015.
      Add Comment

      Your Answer

      By posting your answer, you agree to the privacy policy and terms of service.