jquery listener
$("#submit1").click(function(){$("#testForm").submit();});
$(function () {
$('#popup-wrapper').modalPopLite({ openButton: '#clicker', closeButton: '#close-btn', isModal: true });
$( "p" ).click(function() { $( this ).slideUp();});
$( "#target" ).click(function() { alert( "Handler for .click() called." );});
});
$('.expandable').mouseenter(function () { $(".divname").css('visibility', 'hidden'); $(".divname").fadeIn('fast', function () { $(this).css('visibility', 'visible'); alert("The paragraph is now visible"); }); }
$("button").click(function(){
$("p").hide("slow",function(){
alert("The paragraph is now hidden");
});
});
$( "#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");
$('#companyname').find('option').remove().end();
for (r=0; r<data.length; r++){
var o = new Option(data[r][0],data[r][0] );
$(o).html(data[r][0]);
$("#companyname").append(o);
}
} else {
$('#companyname').find('option').remove().end().append('<option value=""></option>').val('');
$("#companyname").attr( "disabled", "disabled" );
}
}
);
});
沒有留言:
張貼留言