Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1016066
    Benedict
    Participant

    Hi Team, current i’m added below code to JavaScript. It working fine. IF wonder possible to add id?

    jQuery(document).ready(function($) {
    $(‘.x-brand’).attr(‘href’, ‘tel:1300xxxxxx’);
    });

    #1016068
    Benedict
    Participant
    This reply has been marked as private.
    #1016070
    Paul R
    Moderator

    Hi,

    Thanks for writing in!

    You can also use the attr to add your id.

    eg.

    
    jQuery(document).ready(function($) {
           $('.x-brand').attr('href', 'tel:1300xxxxxx');
           $('.x-brand').attr('id', 'my-id');
    });
    

    or

    
    jQuery(document).ready(function($) {
          $(".something").attr( { href:"tel:1300xxxxxx", id:"my-id" } );
    });
    

    Whichever you prefer.

    Hope that helps

  • <script> jQuery(function($){ $("#no-reply-1016066 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>