jQuery addClass example
Change class name on click in jQuery
HTML
<input class="test" type="text" />
JavaScript
$('.test').focus(function(){
if($(this).val() === '') {
$(this).val('г. Оленегорск, ');
}
});
$('.test').blur(function(){
if($(this).val() === 'г. Оленегорск, '){
$(this).val('');
}
});