So I'm running a function when someone clicks on an element with a certain class name (10 of these classes). Then within that function I have another click listener for elements with another class name (another 10). I want this second click function to only occur once after that first click.
So ideally someone would click something from a set of 10, I'd then pull data from that and apply it when someone clicks an element from another set of 10. And then in order to click that second set of 10 they will have to click something from the first set again.
I'm having trouble pulling that off and I've tried some sort of .one implementation.
$('.words_col .wrap').click(function(){
theFunction(this)
})
Then
function theFunction(e) {
$('.examples_col .wrap').click(function(){
//allow only once.
})
}