I am looking for a function that will toggle text exactly as shown by pressing the "Phone" button on this website.
Any help would be much appreciated.
Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
I do not think you need any AJAX here, You can do this also using jQuery Slide method.