Jun 11, 2012 - Javascript, jQuery    Comments Off on Making URL fields idiot resistant.

Making URL fields idiot resistant.

	jQuery(document).ready(function($) {
	    $('#url_field_id').blur(function(){
		    var myval = $(this).val().toLowerCase().replace(/[^a-z0-9]+/g,'');
			$(this).val(myval);
		    });
	});

Comments are closed.