Another alternate
<input data-bind="value: value, style: { 'total-val', is_total }">
also it is recommended not to use hyphen so it would be better if you convert it to
<input data-bind="value: value, style: { 'totalval', is_total }">
look at documentation
http://knockoutjs.com/documentation/style-binding.html
Note: Applying styles whose names aren’t legal JavaScript variable names
If you want to apply a font-weight or text-decoration style, or any other style whose
name isn’t a legal JavaScript identifier (e.g., because it contains a hyphen), you must
use the JavaScript name for that style. For example,
Don’t write { font-weight: someValue }; do write { fontWeight: someValue }
Don’t write { text-decoration: someValue }; do write { textDecoration: someValue }