0

basic question. I am trying to add the variable to the end of my url? What is the correct way to do this? Basically, if I alert filePathZ I want the full path to appear

const filePathX = window.top.$('#FilePath').val().split("/").slice(-2,-1).join(''); 

const filePathZ=window.top.$('#FilePath').innerHTML = ('/content/enforced/+(filePathX')
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Phil
  • 141,914
  • 21
  • 225
  • 223
Vzupo
  • 1,073
  • 1
  • 12
  • 29

0 Answers0