jQuery

toggle

$(document).ready(function(){ $('.accordion_head').click(function() { $(this).next().slideToggle(); }).next().hide(); });

ajax

<input onClick="checkUserId(document.form_input.user_id)">function checkUserId(userid){ $.ajax({ type: "GET", url: "/index.php?ac=Invisible_UseId", dataType:"text", cache: false, data:{ m:7, user_id:userid.value }, success: function(msg)…