The code is as follows:
$(document).ready(function(){
$("input[id^='buttonValidate']").click(function(){ //When clicking all ids containing 'buttonValidate' When entering the input tag, execute the function
var btnVal=$.trim($(this).val());//trim function, remove spaces
var str = $('#textareaValidate').val( ;