包含多个值的选项标签

I want my option tag to have multiple values something like

<option value="+1" value="United States">United States</option>

Then:

  1. I want to call one of the values to java function
  2. I want to pass the other value to a php form file

This is not supported by html. The only options I can think of is

1) translate the single value so it represents seperate things in the seperate system

2) Have the select onchange modify another hidden input value.

maybe you can choose different attribute for each value. <option value="United States" value2="+1">. attribute 'value' using for php and 'value2' for java. i'm not capable in java but in javascript (jquery) it simply call $('option').attr('value2')