บทความ

กำลังแสดงโพสต์จาก กุมภาพันธ์, 2015

Clearing Bootstrap 3 columns

http://www.bluthemes.com/blog/3/clearing-bootstrap-3-columns

การย้าย WordPress จาก Localhost ไป Hosting

http://www.websitelob.com/knowledge/%E0%B8%A2%E0%B9%89%E0%B8%B2%E0%B8%A2-wordpress-localhost/ http://www.wpthaiuser.com/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A2%E0%B9%89%E0%B8%B2%E0%B8%A2-host-wordpress/

JQUERY 1.9 ,1.10, 1.11 conflict with code >> วิธีแก้ตอนสร้าง element เพิ่มมาที่หลัง

Support for  .live()  has been deprecated since version 1.7 and removed since version 1.9. You should switch to the dynamic form of  .on()  which would change from this: $ ( '#go_btn' ). live ( 'click' , function () { to this: $ ( document ). on ( 'click' , '#go_btn' , function () { Ideally, instead of  $(document) , you would pick a closer parent of  #go_btn  that is static (e.g. not dynamically created) as this is more efficient than using  $(document) , particularly if you have a number of delegated event handlers like this. Some references for delegated event handling with  .on() : jQuery .live() vs .on() method for adding a click event after loading dynamic html Should all jquery events be bound to $(document)? Does jQuery.on() work for elements that are added after the event handler is created? credit:  http://stackoverflow.com/questions/21813266/jquery-1-9-1-10-1-11-conflict-with-code

Jquery datatable : row-selector, row().index()

row-selector >>  http://datatables.net/reference/type/row-selector row().index() >>  https://datatables.net/reference/api/row().index()

jquery remove duplicate

I have table which is bound dynamically: <table id = "test" > <tr> <td> test1 <td> </tr> <tr> <td> test2 <td> </tr> <tr> <td> test1 <td> </tr> <tr> <td> test2 <td> </tr> </table> I want to remove duplicate table rows, producing a result like this. <table id = "test" > <tr> <td> test1 <td> </tr> <tr> <td> test2 <td> </tr> </table> sol var seen = {}; $ ( 'table tr' ). each ( function () { var txt = $ ( this ). text (); if ( seen [ txt ]) $ ( this ). remove (); else seen [ txt ] = true ; }); demo credit: http://stackoverflow.com/questions/8234107/remove-duplicate-trs-through-jquery

Highlighting rows and columns

http://datatables.net/release-datatables/examples/api/highlight.html

jquery ajax send array

ส่ง ajax แบบ array   info = []; info [ 0 ] = 'hi' ; info [ 1 ] = 'hello' ; $ . ajax ({ type : "POST" , data : { info : info }, url : "index.php" , success : function ( msg ){ $ ( '.answer' ). html ( msg ); } }); credit : http://api.jquery.com/jquery.each/ วนค่า array มาดู $.each( obj, function ( key, value ) { alert( key + ": " + value ); }); credit : http://api.jquery.com/jquery.each/

วิธีแก้ Bootstrap Dialog Model Datepicker

add z-index above 1051 in class datepicker add something like this in page or css <style> . datepicker { z-index : 1151 !important ;} </style> credit: http://stackoverflow.com/questions/12978254/twitter-bootstrap-datepicker-within-modal-window