Users Pricing

forum

Home Forums Jquery event function trigger once despite of multiple time attach – MindStick

Jquery event function trigger once despite of multiple time attach

Anonymous User 2703 02 May 2013
Hi Expert!

How can i do this

html

   <button id="onclickpopupmenu">Test</button>
   <button id="popupmenuok"></button>

$("#onclickpopupmenu").bind("click",function(){

  alert("this can execute multiple times")
  $("#popmenuok").bind("click",function(){
    alert("this has to be triggered only once eventhough the parent event trigger multiple times")
  })
})

Please help me...

Thanks in advance


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md