function initiate()
{
$("p").text("Hi", Hello());
}
function Hello()
{
alert("Hello, you have called another function");
}
HTML:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button onclick="initiate()">Click me</button>
Right now the script calls the function initiate() upon the button click, and then the other function, Hello() is called, while changing all paragraphs in the html to "Hi".
What I would like is that the function Initiate() will call the function Hello() using jQuery, and do nothing else.
(In other words, how do I simply call a function using jQuery?)