Tuesday, 15 June 2010

ajax - method in focusout execute once -



ajax - method in focusout execute once -

hi have jquery function has ajax method , when focus out of text box function must fire. have server side button in ajaxpanel when press button , button operation never execute focus out

jquery("#drpprovider").focusout(function () { var x; var client = 1; $.ajax({ type: "post", url: "request.aspx/branchsafed", contenttype: "application/json; charset=utf-8", data: json.stringify({ customer: client }), datatype: "json", success: function (ret) { var specification = ret.d; if (ret.d == "no") { } else { var temp = ret.d; $("#blocklable").text(temp); } } }); });

<input id="title">

javascript:

$('#title').focusout(function() { if( $(this).val() ) { alert('!!'); $(this).unbind('focusout'); } });

ajax jquery

No comments:

Post a Comment