{"id":4057,"date":"2017-06-30T04:57:24","date_gmt":"2017-06-30T04:57:24","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=4057"},"modified":"2017-08-12T05:12:59","modified_gmt":"2017-08-12T05:12:59","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%97%e0%b8%b3%e0%b8%a5%e0%b8%b2%e0%b8%81%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%a7%e0%b8%b2%e0%b8%87%e0%b9%84%e0%b8%ad%e0%b9%80%e0%b8%97%e0%b8%a1-drag-drop-image","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%97%e0%b8%b3%e0%b8%a5%e0%b8%b2%e0%b8%81%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%a7%e0%b8%b2%e0%b8%87%e0%b9%84%e0%b8%ad%e0%b9%80%e0%b8%97%e0%b8%a1-drag-drop-image\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 Drag &#038; Drop Image \u0e2b\u0e23\u0e37\u0e2d Div \u0e14\u0e49\u0e27\u0e22 jQuery UI"},"content":{"rendered":"<h2>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 Drag &#038; Drop Image \u0e2b\u0e23\u0e37\u0e2d Div \u0e14\u0e49\u0e27\u0e22 jQuery UI<\/h2>\n<p><\/br><br \/>\n<strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 Drag &#038; Drop Image \u0e2b\u0e23\u0e37\u0e2d Div \u0e14\u0e49\u0e27\u0e22 jQuery UI<\/strong><\/p>\n<p>\u0e01\u0e32\u0e23\u0e17\u0e33\u0e23\u0e30\u0e1a\u0e1a \u0e25\u0e32\u0e01 \u0e41\u0e25\u0e30 \u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 ( Drag &#038; Drop ) \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e1b\u0e1b\u0e23\u0e30\u0e22\u0e38\u0e01\u0e15\u0e4c\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e2a\u0e48\u0e27\u0e19 \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 \u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07 \u0e2b\u0e23\u0e37\u0e2d \u0e08\u0e31\u0e14\u0e25\u0e33\u0e14\u0e31\u0e1a ( arrange ) \u0e02\u0e2d\u0e07\u0e15\u0e32\u0e23\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 backend \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e23\u0e30\u0e1a\u0e1a\u0e25\u0e32\u0e01\u0e27\u0e32\u0e07\u0e41\u0e17\u0e19\u0e01\u0e32\u0e23\u0e01\u0e14\u0e1b\u0e38\u0e48\u0e21\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 \u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e02\u0e36\u0e49\u0e19-\u0e25\u0e07 \u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e0b\u0e49\u0e32\u0e22-\u0e02\u0e27\u0e32 \u0e08\u0e30\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e08\u0e31\u0e14\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e02\u0e31\u0e49\u0e19\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32 \u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e25\u0e34\u0e01\u0e2b\u0e25\u0e32\u0e22\u0e04\u0e23\u0e31\u0e49\u0e07<!--more--><\/p>\n<p><\/br><\/p>\n<blockquote><p><a href=\"http:\/\/www.codebee.co.th\/labs\/examples\/jquery_sortable\/\" target=\"_blank\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 \u0e14\u0e49\u0e27\u0e22 jquery UI sortable <\/a><\/p><\/blockquote>\n<p><\/br><br \/>\n\u0e43\u0e19 jQuery UI \u0e08\u0e30\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 sortable \u0e17\u0e35\u0e48\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e23\u0e30\u0e1a\u0e1a \u0e25\u0e32\u0e01-\u0e27\u0e32\u0e07 \u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2a\u0e30\u0e14\u0e27\u0e01\u0e2a\u0e1a\u0e32\u0e22 \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e47\u0e07\u0e48\u0e32\u0e22\u0e21\u0e32\u0e01 \u0e46 \u0e40\u0e1e\u0e35\u0e22\u0e07\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49 class \u0e2b\u0e23\u0e37\u0e2d id \u0e04\u0e23\u0e2d\u0e1a\u0e44\u0e2d\u0e40\u0e17\u0e21\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14 \u0e41\u0e25\u0e30\u0e22\u0e31\u0e07\u0e21\u0e35 event \u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e35\u0e01\u0e14\u0e49\u0e27\u0e22<br \/>\n<\/br><\/p>\n<h4>\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 sortable \u0e43\u0e19 jQuery UI<\/h4>\n<ul>\n<li>1. \u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 jQuery \u0e41\u0e25\u0e30 jQuery UI \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/li>\n<pre class=\"lang:default decode:true \" >&lt;script src=\"https:\/\/code.jquery.com\/jquery-1.12.4.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/code.jquery.com\/ui\/1.12.1\/jquery-ui.js\"&gt;&lt;\/script&gt;<\/pre>\n<li>2. \u0e2a\u0e23\u0e49\u0e32\u0e07 class \u0e2b\u0e23\u0e37\u0e2d id \u0e04\u0e23\u0e2d\u0e1a\u0e44\u0e2d\u0e40\u0e17\u0e21\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16 drag \u0e41\u0e25\u0e30 drop \u0e44\u0e14\u0e49 \u0e41\u0e19\u0e30\u0e19\u0e33\u0e27\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e43\u0e19\u0e41\u0e17\u0e47\u0e01 ul li \u0e41\u0e15\u0e48\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 div \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19<\/li>\n<pre class=\"lang:default decode:true \" >&lt;ul id=\"sortable\"&gt;\r\n  &lt;li&gt;Item 1&lt;\/li&gt;\r\n  &lt;li&gt;Item 2&lt;\/li&gt;\r\n  &lt;li&gt;Item 3&lt;\/li&gt;\r\n  &lt;li&gt;Item 4&lt;\/li&gt;\r\n  &lt;li&gt;Item 5&lt;\/li&gt;\r\n&lt;\/ul&gt;<\/pre>\n<li>3. \u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 sortable \u0e02\u0e2d\u0e07 jQuery UI \u0e07\u0e48\u0e32\u0e22 \u0e46 \u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 \u0e44\u0e2d\u0e40\u0e17\u0e21\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 li \u0e01\u0e47\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e43\u0e19\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e43\u0e14 \u0e46 \u0e01\u0e47\u0e44\u0e14\u0e49\u0e20\u0e32\u0e22\u0e43\u0e19\u0e44\u0e2d\u0e14\u0e35 sortable<\/li>\n<pre class=\"lang:default decode:true \" >$('#sortable').sortable();<\/pre>\n<li>4. \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 event \u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e02\u0e2d\u0e07 jQuery UI sortable \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e48\u0e07\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1b\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e14\u0e49\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/li>\n<pre class=\"lang:default decode:true \" >$('#sortable').sortable({\r\n        start: function(event, ui) {\r\n            var start_pos = ui.item.index();\r\n            ui.item.data('start_pos', start_pos);\r\n        },\r\n        change: function(event, ui) {\r\n            var start_pos = ui.item.data('start_pos');\r\n            var index = ui.placeholder.index();\r\n        },\r\n        update: function(event, ui) {\r\n\t\t\tvar start_pos = ui.item.data('start_pos');\r\n            var index = ui.placeholder.index();\r\n        }\r\n    });<\/pre>\n<\/ul>\n<blockquote><p><a href=\"http:\/\/www.codebee.co.th\/labs\/examples\/jquery_sortable\/\" target=\"_blank\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 \u0e14\u0e49\u0e27\u0e22 jquery UI sortable <\/a><\/p><\/blockquote>\n<p><\/br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 Drag &#038; Drop Image \u0e2b\u0e23\u0e37\u0e2d Div \u0e14\u0e49\u0e27\u0e22 jQuery UI \u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e25\u0e32\u0e01\u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e2d\u0e40\u0e17\u0e21 Drag &#038; Drop Image \u0e2b\u0e23\u0e37\u0e2d Div \u0e14\u0e49\u0e27\u0e22 jQuery UI&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4065,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[46],"tags":[1686,1687,1690,1688,1689,1692,1693,1691,1685,1114,824],"class_list":["post-4057","post","type-post","status-publish","format-video","has-post-thumbnail","hentry","category-website-development-","tag-drag-drop","tag-javascript-drag-drop","tag-javascript-drag-drop-image","tag-jquery-drag-drop","tag-jquery--","tag--div","tag-1693","tag-1691","tag-1685","tag--javascript","tag--jquery","post_format-post-format-video"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=4057"}],"version-history":[{"count":8,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4057\/revisions"}],"predecessor-version":[{"id":4066,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4057\/revisions\/4066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/4065"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=4057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=4057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=4057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}