elements. ); Syntax: $ ( selector ). The common solution is disables the submit button after user clicked on it. Basic example of using toggle with div. To do this task, we can use the following two methods: prop () method: It is used to set property values, it sets one or more property for the selected elements. Any HTML element can receive this event. The click event is only triggered after this exact series of events: This is usually the desired sequence before taking an action. JQ offer an helper for this: $ (document).ready (handler)or $ (document).load (handler) (according to JQuery doc, this two function are not compatible...) Leave a comment on gbillard's reply. Because :button is a jQuery extension and not part of the CSS specification, queries using :button cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. You can simply use the jQuery prop () method to change the text of the buttons built using the HTML element, whereas to change the text of the buttons which are created using the