For jQuery 1.6+ use .prop() function. I don't think it's a good idea to support old versions and use .attr() or something like this.
For jQuery 1.6+ use .prop() function. I don't think it's a good idea to support old versions and use .attr() or something like this.
Strange behavior of console.log() I have noticed when I created a JS code for SharePoint page. My code used jQuery and SPServices library. The code used to get items from a list and render options for "select" control.
Below I post a part of my function which fills a JS array and renders options for "select" control.