Need help with text inputs that have onclick functions.
Looking to assign a specific CSS class to text inputs with a certain onclick function.
Attempted to use this jQuery code:
$(document).ready(function(){
$('input').each(function() {
if($(this).attr("onclick") == "datetime_picker" && $(this).val() == "") {
$(this).addClass("DateTimePickerInput");
}
});
});
Unfortunately, it did not work as expected.