I am not getting alert box [closed]
I have used a cod开发者_如何学Goe to alert variable value on blur effect of input with id fname. Please help me with code.
$("#fname").blur(function() {
var childid = $("#fname").val();
$Alert(childid);
});
Its not showing me alert box.
You are using invalid syntax for alert, try this:
$("#fname").blur(function() {
var childid = $("#fname").val();
alert(childid);
});
Hope this helps.
精彩评论