Category: jQuery

การทำ Web service ด้วย WCF + Restful + Json PART II

ต่อจากของเดิม http://kungtee.rmutp.ac.th/index.php/wcf-restful-json/ ต่อจากครั้งที่แล้วทำ table และปุ่ม <!doctype html> <html lang="en"> <head> <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript" src="myscript.js"></script> </head> <body> <input type="text" id="hello" value="" /><br/> <input type="text" id="studentid" value="" /><input type="button" id="submit"…

Login Panel

$(document).ready(function(){ $('#login a').toggle(function(){ $(this) .addClass('active') .next('from') .animate({'height' : 'show'},{ duration: 'slow', easing: 'easeOutBounce' }); },function(){ $(this) .removeClass('active') .next('form') .slideUp(); }); }); <!doctype html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>…

Multi level accordion

$(document).ready(function(){ $('#accordion > li ul') .click(function(event){ event.stopPropagation(); }) .filter(' :not(:first)') .hide(); $('#accordion > li,#accordion > li > ul > li').click(function(){ var selfClick=$(this).find('url:first').is('visible'); if(!selfClick){ $(this) .parent() .find('> li ul:visible') .slideToggle(); }…