Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get id from javascript function call

<area id="nose" onmouseover="zoom(this);" />

<script>
  function zoom(ele) {
    var id = ele.id;

    console.log('area element id = ' + id);
  }
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #id #javascript #function #call
ADD COMMENT
Topic
Name
3+4 =