Welcome to WebmasterWorld Guest from 34.204.169.76

Forum Moderators: open

Message Too Old, No Replies

Input groups and country image

     
2:31 pm on Oct 27, 2015 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1103
votes: 1


I have code like:
<div id="TelNumber" runat="server" enableviewstate="False" class="form-group col-md-3">
<label class="control-label">Telephone Number</label>
<div class="input-group">
<span class="input-group-addon">09</span>
<input class="form-control" type="text">
</div>
<p class="help-block">Show telephone number on profile</p>
</div>

As there is country image for each mobile origin (country) how to show automatic country image from selected origin or change number as data-code?
<select class="myselect" name="ISO" data-not-selectize="true">
<option class="my-option gb-options" value="GB" data-code="+44" >United Kingdom</option>
<option class="my-option us-options" value="US" data-code="+1" selected>United States</option>
</select>

This is just example but main point is showing image for each selected country.