Still I am not sure what exactly you want to do with value of sem.
Taking a scenario. You want to capture clicked buttons value in sem and want to display it inside a input present in validate.jsp.
$(document).ready(function(){
var id = null;
$(".button-links").click(function(){
id=this.id;
$("#result").load("validate.jsp?sem=id");
// Assumng we have a hidden input with class="buttoName"
$("#result .buttonName").val(id);
});
// Use on as validate.jsp is dynamically loaded via Ajax
$(".submitInValidate").on('click',function(){
var requierdVal = $("#result .buttonName").val();
// Now you can do further processing with this value.
});
});
By this way you can get value of id or sem in validate.jsp.
If you looking for something else just set the value of sem to hidden input and use it later in validate.jsp.