cakephp 2.3 - when we move to next field the validation message showing enter the previous field should appear? -
i have worked on nothing working out seems bit awkward.i have used onfocus command .
$(document).ready(function() { var field = $('input[type="text"]'); field.focus(function() { //empty field on focus var thisvalue = $(this).val(); $(this).attr("value", ""); }); field.blur(function() { //check field if left empty if ($(this).val() == "") { //alert('this field can not left empty'); $(this).val(thisvalue); } }); });
i think have missed out or mistaken fieldname tell me went wrong.
Comments
Post a Comment