how to create a Draggable element
Answer / Dinesh Singh
You can use JavaScript libraries like jQuery UI or Dragula to make an element draggable. Here's an example using jQuery UI:n```htmln<!DOCTYPE html>n<html lang="en">n<head>n <meta charset="UTF-8">n <title>Draggable Example</title>n <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/theme.min.css">n <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>n <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>n</head>n<body>n <div id="draggable" class="draggable ui-widget-content">Drag me!</div>n <script>n $( function() {n $( "#draggable" ).draggable();n });n </script>n</body>n</html>```
| Is This Answer Correct ? | 0 Yes | 0 No |
how to copy form data between different pages
code to create a new window
program to bring a window to the front
how to get the User's Time of Day
how to pass data between pages using URLs
write a function to validate a given date
How to block double clicks
i am making a purchase sheet in html ,it contain names of product(by selecting checkboxes),quantity(textbox) and price(checbox), by using java script i am restricting the user to prevent them to enter the wrong data ,so i made the servlet were i am only able to prevent them to enter the page in empty field , so my doubt is how do you prevent them how to enter non numerical data in quantity field
How to Add Message and Confirmation Boxes Using JavaScript?
write a program to detect the user's browser ?
how to create an anonymous function
program that will accept any name and will be stored in an array