Get value from jquery funtion in plugin

Hello Everyone;

Capture

I am making plugin to populate value from input.
could you please help me to take the value of the input (Nchoice Field) like in the picture from function Nchoice_set() to use in another php code. Like we can say from jQuery value to php variable.

    function Nchoice_set($position, $form_id){

    if ($position == 25) {  // right after Admin Field Label
		?>
		<li class="Nchoice_setting field_setting">
			<label for="field_admin_label">
				<?php _e('Nchoice field', 'txtdomain'); ?>
			</label>
			<input type="text" id="field_Nchoice" onchange="SetFieldProperty('Nchoice', this.value);" class="fieldwidth-3" />
		</li>
	   
		<?php
	}	
}

    function Nchoice_edit() {
	
	?>
	<script type="text/javascript">
		fieldSettings["Nchoice"]='.Nchoice_setting';
		jQuery(document).on("gform_load_field_settings", function(event, field, form) {
	        jQuery("#field_Nchoice").val(field["Nchoice"]);
    var test = document.getElementById("field_Nchoice").value;
     console.log(test)
	    	});
	</script>
	<?php
}