Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

copy and deletion of div by pressing button in javasript

<!doctype html>
<html>

<head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script>
        $(document).ready(function() {
            $(document).on('mouseenter', '#divbutton', function() {
                $(this).find(":button").show();
            }).on('mouseleave', '#divbutton', function() {
                $(this).find(":button").hide();
            });
        });
    </script>

    <style>
        #divbutton {
            height: 100px;
            background: #0000ff;
        }

        #divbutton2 {
            height: 100px;
            background: #0000ff;
        }

        #divbutton3 {
            height: 100px;
            background: #0000ff;
        }
    </style>
</head>
<body>
    <div id="divbutton">
        <button type="button" style="display: none;" id="i" onclick="document.body.removeChild(document.getElementById('divbutton'))">Hello</button>
    </div>

    <div id="divbutton2">
        <button type="button" style="display: none;" id="i" onclick="document.body.removeChild(document.getElementById('divbutton2'))">Hello </button>
    </div>

    <div id="divbutton3">
        <button type="button" style="display: none;" id="i" onclick="document.body.removeChild(document.getElementById('divbutton3'))">Hello </button>
    </div>
</body>

</html>
Comment

PREVIOUS NEXT
Code Example
Java :: how to add a singleton hashset in java 
Java :: another name for coffee 
Java :: force_dark_auto android webview 
Java :: size of a tree node java linked;ist 
Java :: difference between final and constant in java 
Java :: data validation dialog box android 
Java :: sort colors 
Java :: Composite foreign keys as primary key jpa 
Java :: konva crop outside width and height of image 
Java :: Method returns value 
Java :: scanner.nextInt stream api java 
Java :: setvisibility not working in fragment 
Java :: mapToJsonString 
Java :: What is accept() method in networking 
Java :: dialog background dimming in android 
Java :: how to set to nothing a ComboBox in java 
Java :: android studio epoch to localdatetime 
Java :: aabb collision java 
Java :: android dynamically create layer-list with item and shape site:stackoverflow.com 
Java :: selenium code for login 
Java :: java include class 
Java :: public CustomAdapter(Context context, ArrayList<HashMap data, int resource, String[] from, int[] to) 
Java :: Class inheritance and encapsulation 
Java :: Java Another form of assertion statement 
Java :: how do you create a txt file in java 
Java :: implicit type casting in java 
Java :: ResultSet rs = ps.executeQuery() 
Java :: priority queue is empty java 
Java :: how to create space between element in vbox in javafx 
Java :: android httpurlconnection post multipart/form-data 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =