Initialize using the = symbol. The message will display twice, because the handler has been bound to the change event on both of the form elements. Using variables. jQuery change() jQuery change event occurs when the value of an element is changed. Example. Using the dollar sign is not very common in JavaScript, but professional programmers often use it as an alias for the main function in a JavaScript library. OpenJS Foundation Terms of Use, Privacy, and Cookie Policies also apply. This event is limited to elements,