0

I add a class to an input field when the text changes using jquery in the document.onready function.

$('#formid2 input').on('change', function (e) { $(this).addClass('changed');
});

Is there a way to verify using chrome dev tools whether the class was really added?

4

1 回答 1

1

右键单击输入字段,单击inspect element,然后查看 html 以查看是否存在。在<input>您应该看到的标签内,class="changed"或者您添加的任何类的名称。

于 2013-07-12T18:01:23.083 回答