I want to append text when some id changes.
<div class="col-sm-1">
<input name="stime" type="text" class="form-control" id="stime" placeholder="00:00" required maxlength="5" />
<span class="form-control-feedback"></span>
</div>
When stime
changes, I want to append a text to the form-control-feedback
class.
This is my script, but nothing changes.
$("#stime").change(function (e) {
var time = $("#stime").val();
$("#stime").find(".form-control-feedback").append("* Check Format Time (HH:mm)");
});
thank you, it solved.