How to show an image through javascript?

0

The following code is in the javascript:

<img class=\"modal-loading\" src=\"~/Content/img/loading.gif\" />

The end result:

    
asked by anonymous 02.03.2017 / 02:06

1 answer

1

Good evening Did you ever try to take out the address? everything will depend on the directory that is img if you are in a sub directory of your web project just put Content / img / loading.gif

    
02.03.2017 / 02:31