I'm using jquery ajax to fetch a page called matid.jsp like this::
var loadUrl = "matid.jsp";
          $(".get").click(function () {
              $.get(loadUrl, function (responseText) {
                  $("#result").html(responseText);
              });
          });
Is there a way to update this var loadurl from the body of the html page to look like this
"matid.jsp?hello" the next time a click is made?
Below is how I create multiple divs that should have different loadurl parameter when the .get() function is called
for(int i=1; 1<20; i++){
<div onclick="$.get()" class="get"><%=i%> </div>
}
Thanks
 
    