2013年12月4日 星期三

jquery-disable jquery-enable password verify

$("#pgdnButton,#pgupButton").removeAttr('disabled');
if(reccount*1<=limit*1) $("#pgdnButton,#pgupButton").each(function() {this.disabled='disabled';});



/*****************************************************************/

javascript-enable
jquery disable
jquery enable


$( "#password" ).blur(function() {
s0=_lookup('username');
s1=_lookup('password');
s='tableRead?db=hr&table=USER&fields=COMPANY_NAME&where=where '+
'login_id:`'+s0+'` and password:sha(`'+s1+'`) &format=S&callback=?';
$.getJSON(s,
 function(data) {
 if (data[0]){
$("#companyname").removeAttr("disabled");
  }  else {
$("#companyname").attr( "disabled", "disabled" );
  }
 }
);
});

沒有留言:

張貼留言