I’ve a variable $curr_price
. Each time some person updates the variable, I wish to present a message to the opposite customers.
Ought to I take advantage of a jQuery script one thing like this:
$("curr_price").change(perform(){
alert("The Price has been changed.");
});
And secondly the place in my PHP file ought to I put the script.
Within the prime of the doc or the place I need the message to be displayed.
I truly do not wish to use an alert field however echo or print the messages in a particular div.