The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to replace text based on SVG selection/click

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #189293

    I just recently began working with SVG and my javascript is a bit rusty right now. Currently the example has a crude svg shape (will be replaced with a nicer one when the designer sends it over) and for brevity only includes the shape I’m working with (there will be multiple selectable parts).

    I’m trying to change the text “Select an area below” to the id of the shape when it’s clicked/selected. In most svg tutorials I’m told to use “application/ecmascript” for the script type. I’m currently not seeing any errors in the debug. I would greatly appreciate someone taking the time to tall me what I may be doing wrong. Thank you!

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.