We would like to know how to set text on click event.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'>
$(document).ready(function() {<!-- ww w. j a v a 2 s . com-->
$('#progress-indicator').click(function(){
$('#progress-indicator').html("saving changes....");
});
});
</script>
</head>
<body>
<div class="span1" id="progress-indicator"
style="text-align: left; border: 2px solid #000;"> </div>
</body>
</html>
The code above is rendered as follows: