I’m wanting to insert custom jQuery to run when the header loads, and then when clicking an element in my header. I’m running X pro. How should I insert this code? Also, is using $ acceptable?
$( document ).ready(function() {
PhoneButtonClick(“Load”);
});
$( “#phonebutton-anchor-button” ).click(function() {
PhoneButtonClick(“Test”);
});
$( “#phonenumber” ).click(function() {
PhoneButtonClick(“Hide”);
});
function PhoneButtonClick() {
$( “#phonenumber” ).toggleClass( “hidden” );
};