$(\".box_yazi2\").each(function () { var default_value = this.value; $(this).css(\'color\', \'#555\'); // this could be in the style sheet instead $(this
Just use the defaultValue property:
var default_value = $(this).prop("defaultValue");
Or:
var default_value = this.defaultValue;