P
P
Pavel_Proca2016-11-09 19:03:20
css
Pavel_Proca, 2016-11-09 19:03:20

How to style dropdown?

How to style a dropdown like this?

<select id="loc-state" value="State">
  <option>USA</option>
  <option>Russia</option>
  <option>Moldova</option>
</select>

Namely:
- change the arrow
- change the background of the drop-down menu
- change the font of the drop-down menu

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2016-11-09
@Pavel_Proca

Alternatively, https://jsfiddle.net/270s8fr3/

L
Lumore, 2016-11-10
@Lumore

Write select in js / take a ready-made solution and substitute the value in the input.

F
Franco Mannino, 2017-01-31
@garinov

Asked - Answered

<?php

echo '<form action="new6.php" method="post">
  <input type="text" name="IPAddress" value=""><br><br>
  <input type="submit" value="Submit">
</form>';

try 
{
$soap_client = new SoapClient("http://www.webservicex.net/geoipservice.asmx?WSDL");
  $vec = array("IPAddress"=>$_POST[IPAddress]);
  //print_r($vec);
  echo '<br><br>';
  
  $quote = $soap_client->GetGeoIP($vec);
  //print_r($quote);
  echo '<br><br>';

  //print_r($quote->GetGeoIPResult->CountryName);
  
  $country = $quote->GetGeoIPResult->CountryName;
  echo "Ваш IP " . $quote->GetGeoIPResult->IP . " соответствует стране: " . $country;
  
}

catch (SoapFault $exception)
{
echo $exception->getMessage();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question