yandex
loader

please wait

  • Akansha Sinha Dec-26-2018 04:53:42 AM ( 2 months ago )

    when i am trying to get the id of clicked div it show undifined in react js.My Code is as below:

     

    HTML:

     

    SCRIPT:

    quizDetail=(e)=>{

        console.log(e.target.id);

    }

     

    RESULT:

    undifined

  • Alex Wilson Dec-26-2018 05:26:11 AM ( 2 months ago )

    instead of using:

    e.target.id

     

    use:

    e.currentTarget.id

Please login

Similar Discussion

Recommended For You