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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -