Randy_Johnson
5 months ago
257
1
General

Input Select, Selecting the Correct Option on Page Load!

Posted 5 months ago by Randy_Johnson

Input Select, Selecting the Correct Option on Page Load!

On my page, the user is using a drop down to select their address, from there they are updated with the input fields updated with the right data. The problem is that there is one input field that I am struggling to update, and that is the field.

I have managed to select one country, which I my primary target country for selling to, but that is done by typing on the html input, now I know I can have something such as

@if ($var == "GB")
	echo 'selected';
@endif

but to do this for over 100 entries seems crazy. Please help.

Please sign in or create an account to participate in this conversation.