Get value from jquery funtion in plugin

Hello Everyone;


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'); ?>
			<input type="text" id="field_Nchoice" onchange="SetFieldProperty('Nchoice', this.value);" class="fieldwidth-3" />

    function Nchoice_edit() {
	<script type="text/javascript">
		jQuery(document).on("gform_load_field_settings", function(event, field, form) {
    var test = document.getElementById("field_Nchoice").value;