JS:
Upper the text on dynamically created element which has attribute upper and when keyup action happens
$(document.body).on('keyup', '[data-upper]', function toUpper() { this.value = this.value.toUpperCase(); });