I'm using JQuery UI Dialog, and I can't seem to make it ignore any changes made to the value when closing. When I open the dialog, make any changes to and then close it, then it should refresh the dialog to what it was before when I open the dialog again. I'm using $('#profile_content').dialog()
, where profile_content is the id for the div block:
<div id='profile_content'>
<label for="user_name">Name:</label>
<input type="text" id="user_name" value="<?php echo $user['username'] ?>"/><br>
<label for="user_email">Email:</label>
<input type="text" id="user_email" value="<?php echo $user['email'] ?>"/>
</div>