Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Capitalize first letter of Formidable Form field
<script>
jQuery(document).ready(function($) {
"use strict";
$("#field_xxxxxx").keydown(function () {
var _val = $(this).val(),
_txt = _val.charAt(0).toUpperCase() + _val.slice(1);
$(this).val(_txt);
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment