I am trying to bind a click event to a div which contains a input button. What i want is when the button is clicked i want to call another function.
The HTML div class is shown below.
var searchAttachPoint= document.querySelector('.header1');
And in my javascript i have these lines.
var searchAttachPoint= document.querySelector('.header1');
$(#header1).bind("click",searchPrompt("Key the text and press Ok", false));
I am getting an error saying "Unexpected token ILLEGAL " in the line where i bing the click event. Could someone please help me out. Thanks in advance.
searchPromptwill need to return a function for this to work