Skip to content

Instantly share code, notes, and snippets.

@backy22
Created June 13, 2015 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save backy22/36cd7986e6c1e93d0967 to your computer and use it in GitHub Desktop.
Save backy22/36cd7986e6c1e93d0967 to your computer and use it in GitHub Desktop.
// mouseoverしたら色が変わる
// mouseoutしたら色変戻る
$('.jscell').hover(
function(){
$(this).css("background-color","#CCFFFF");
},function(){
$(this).css("background-color","");
}
);
// クリックしたらdialog-formがポップアップで出てくる
$(document).on('click','.jscell',function(){
$('#dialog-form').show();
});
// dialog-form上の「閉じる」で閉じる
$(document).on('click','#modal-close',function(){
$('#dialog-form').hide();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment