Here is a snippet of code that I am working with :
<div class="col-xs-6">
@Html.TextBoxFor(model => model.TagName, new {@class = "textBoxTextFormat", @id = "newTagText"})
</div>
<div class="col-xs-3" >
<a href="#" id="addNewTagButton"><span class="glyphicon glyphicon-floppy-disk" style="color: #4790b8; vertical-align: bottom; margin-top: 5px; font-size: 30px;"></span></a>
<a href="#" id="cancelNewTagButton"><span class="glyphicon glyphicon-remove-circle" style="color: #4790b8; vertical-align: bottom; margin-top: 5px; font-size: 30px;"></span></a>
</div>
This code generates the following output: ScreenShot
I am looking to update the save and cancel buttons when the text in the textbox changes. However, my current solution does not seem to be effective:
$(document).on('change', '#newTagText', function (e) {
$('#addNewTagButton').css('color', '#0000FF');
});
If anyone has any insights on how to achieve this, please let me know.