Simple question: How to change div title using jquery
- by user281180
I have the following code:
<div id="DivPassword" title="test" >
I want to change the div title and I have the following code:
function ChangeAttribute() {
$("#DivPassword")
.attr('title', 'Photo by Kelly Clark');
$('#DivPassword').dialog('open');
return false;
}
When the dialog is opened, the title is still test! if I dont assign any title to the div, the dialog doesnt show any title. How can I correct that?