1
URL의 첫 번째 부분을 알고 있지만 클라이언트가 div에 입력 한 내용을 기반으로 마지막 부분을 고유하게 정의해야합니다. 예를 들면 다음과 같습니다.URL에 DIV에 지정된 값이 추가됩니다.
<!-- specify page name in the div -->
<div id="client-entry">page-name</div>
<div id="load-url">url loads here</div>
<!-- load what is specified at the end of the url -->
<script>
$("#load-url").load("known-folder/"#client-entry.text()".html");
</script>
도움이 될만한 의견이 있습니다.
두 번째 아이디어는 내가 찾고있는 것입니다. 내가 바꾼 유일한 것은 .val과 .text이고 완벽하게 작동했습니다. 고맙습니다! – trobbins26