JavaScript jQuery selector targeting element with id AND class does not work jquery target selector

I have the following event-handling function:

jQuery(document).on('click', '#button .submitb', function(e){alert();});

jQuery IS included in the html document. But, if I click on a <div id="button" class="submitb">Go!</div> nothing happens. I don't even get an error in the chrome-console.

Answer:1

This may be a dumb question , not a completely programming related question but bear with me as I am trying to learn. How does FEEDLY retrive the feeds / news from a website just by entering the ...

This may be a dumb question , not a completely programming related question but bear with me as I am trying to learn. How does FEEDLY retrive the feeds / news from a website just by entering the ...

  1. what does service look like
  2. does honda have a service like onstar
  3. does jeep have a service like onstar

I am using a datepicker which came deafult with a html template , everything worked fine untill i used a custom jquery to hide a div using a radio button ... here are my top scripts <script type='...

I am using a datepicker which came deafult with a html template , everything worked fine untill i used a custom jquery to hide a div using a radio button ... here are my top scripts <script type='...

  1. jquery breaks another javascript

I have been working with the excellent noUISlider jQuery plugin and now I want to start using the npm version as I am moving my JS to use node and browserify. However I don't understand how to adapt ...

I have been working with the excellent noUISlider jQuery plugin and now I want to start using the npm version as I am moving my JS to use node and browserify. However I don't understand how to adapt ...

  1. browser version using jquery
  2. using multiple version of jquery
  3. check browser version using jquery

I'm trying to load an image from a URL into a HTML canvas at a 1:1 scale. I load the image, and set the canvas DOM element to the appropriate dimensions, but for some reason the image in the canvas is ...

I'm trying to load an image from a URL into a HTML canvas at a 1:1 scale. I load the image, and set the canvas DOM element to the appropriate dimensions, but for some reason the image in the canvas is ...

  1. using canvas to draw
  2. using html5 draw canvas containing star
  3. draw using canvas android