I have one button with its corresponding ID. I wish to set the tooltip property of it with JS.
<button name="subject" id="button" type="submit" value="HTML" title="title1">HTML</button>
<script>
function clickMe() {
$('#button').title = 'title2';
}
</script>
How am I able to do this ? Is it title property or some other ?
Thank you in advance