<link rel="stylesheet" href="tabs.css" type="text/css" media="screen, projection"/> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.7.custom.min.js"></script> <script type="text/javascript"> $(function() { var $tabs = $('#tabs').tabs(); $(".ui-tabs-panel").each(function(i){ var totalSize = $(".ui-tabs-panel").size() - 1; if (i != totalSize){ next = i + 2; $(this).append("<a href='#' text-decoration='none' border='none' class='next-tab mover' rel='" + next + "'><input type='image' img src='mypic/right.png'/ onclick=chkdata();></a>"); } if (i != 0) { prev = i; $(this).append("<a href='#' text-decoration='none' border='none' class='prev-tab mover' rel='" + prev + "'><input type='image' img src='mypic/left.png'/></a>"); } }); $('.next-tab, .prev-tab, .submit-tab').click(function() { $tabs.tabs('select', $(this).attr("rel")); return false; }); }); </script> <script type="text/javascript"> function chkdata(){ var idno = document.getElementById('idno').value; if(idno == "") { alert('กรุณากรอกใส่หมายเลขบัตรประชาชนด้วยค่ะ'); document.dateform.idno.focus(); } } </script>
<!DOCTYPE html> <html> <head> <style> textarea { height:45px; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <form> <input type="text" id="text1" /> <input type="text" id="text2" /> <input type="text" id="text3" /> <input type="text" id="text4" /> <input type="text" id="text5" /> <input type="text" id="text6" /> <input type="submit" /> </form> <div> </div> <script> $(function(){ $('form').submit(function(){ if ($(':text[value=""]').size() > 0){ alert('กอรก textbox ไม่ครบ'); return false; } return true; }); }); </script> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง