How to use:
Copy and paste "db_field_length_checker_ajax.php" to your main folder ( where appconfig can usually be found);

Syntax Example

HTML:

<input type='text' name='txtfld[lname]' class='input required ef_fld' id='txt3'  data-db_col="lname">
<input type='text' name='txtfld[fname]' class='input required ef_fld' id='txt5'  data-db_col="fname">

.ef_fld
 - is used to group the input elements

.data-db_col
- value is the column name of the input field from the database table
- will be used to fetch field length from the database table

jQuery: ( note: do not forget to add jquery library)
<script>

jQuery(document).ready(function()
{
	$('.ef_fld').dbFldLen({
			link_id:'link_id',
			tablename:'employeefile'
		});
})

link_id
- the PHP PDO variable name for the connection, notice that the dollar sign was removed

tablename
- the database table where data-db_col value will be fetched

</script>


