জেকুয়েরী dragenter
🌈জেকুয়েরী dragenter কি?
📋জেকুয়েরী dragenter হলো ড্র্যাগ করা এলিমেন্ট প্রবেশ করলে অবহিত করার পদ্ধতি।
⚒️জেকুয়েরী dragenter ড্র্যাগ করা এলিমেন্ট প্রবেশ করলে অবহিত করতে ব্যবহৃত হয়।
জেকুয়েরী dragenter ড্র্যাগ করা এলিমেন্ট প্রবেশ করলে অবহিত করার উদাহরণ।
jquery
<!DOCTYPE html>
<html>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<body>
<p draggable="true">আমাকে টেনে নিন</p>
<div style="padding:30px; background:lightgray;">
ছেড়ে দেওয়ার স্থান
</div>
<script>
$(document).ready(function(){
$("div").on("dragenter", function(){
$(this).css("background", "lightgreen");
});
});
</script>
</body>
</html>