I'm using jquery to fadein divs in a html page,is there a click function to the divs that can be interpreted as user input, i want it to replace a javascript user prompt

      prompt(what do u chose?);
output string =" i chose this"
I want to assign the string variable to the click function, i don't even think this is possible. Any ideas?