• Resolved michalrama

    (@michalrama)


    Hello,

    I need to get the value of an attribute. But this code returns undefined in the console.

    jQuery(document).ready(function( $ ){
       var example = $(".social-networks").attr("margin-bottom");
       console.log(example);
    });

    What am I doing wrong, please? What is the correct code?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Jquery – how to get attribute value of specific class?’ is closed to new replies.