Saturday, 26 August 2017

javascript - Uncaught TypeError: Cannot read property 'setAttribute' of undefined at Object.onLoad



Any ideas what might be causing this error?



List of my includes:














HTML Element:






Script:




$('#monthDrop').dropdown();


It renders fine and everything and no errors on load, just this when I try to click on it:



enter image description here


Answer



We ran into the same error with the following html:







We tried removing data-toggle="dropdown" from the

Blog Archive