Friday 15 May 2020

How to add new elements to DOM in jQuery

Answer: User the jQuery append() function

You can add element to dom using append function. sometimes we need to create dynamic html to dom at that time you can use append function.

$("#dvData").append("How to add new elements to DOM in jQuery");  


promise is undefined ie11

Answer: Use the npm es6-promise-promise to solve promise is undefined ie11

You need to install npm once imstalled then use this code to to solve promise function error

var ES6Promise = require("es6-promise");
ES6Promise.polyfill();
var axios = require("axios");

Other solution

You can resolve this error to adding 1 js in head tag. Use this script https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js

Search keywords for promise is undefined ie11

  • es6-promise-promise
  • ie11 promise polyfill
  • promise polyfill for ie



Asp.net tutorials