Support

Account

Home Forums Front-end Issues Show select value of dynamically populated menu Reply To: Show select value of dynamically populated menu

  • I have managed to create a text field in ACF called assigned_company which I have gave a css class too of assignedCompany and then in jquery told it to populate the text field with the value of whatever was chosen in the dynamically generated dropdown menu:

    $( ".assign_company select option" ).click(function() {
    		var text = $( this ).text();
    		$( ".assignedCompany input" ).val( text );
    	});

    and then have pulled that from the front-end however I can’t seem to get the other values: company_email, company_number, and company_logo. I would like to get the appropiate unique value depending on what company the user selected.