Use html code in javascript?

  • 0
    Good day, in the js filter, when triggered, the word "you have chosen" is displayed. I also need to display the reset button next to
    <button type="button" class="btn btn-secondary" href="javascript:%20void(0);" id="reset"><i class="fa fa-times" aria-hidden="true"></i>
     <span class="sbros"></span></button>

    The js snippet itself
    if (msg_list.length==0)
    			return "" 
    
    		return  [msg[msg_index++],
           "Вы выбрали:", msg_list.join()].join("");
    
    	}
    JavaScript Anonymous, Nov 14, 2019

  • 1 Answers
  • 0
    Oh, I don't know if I understood you correctly.

    Wangyu that you are using UIkit. Then - something like this:

    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!