How to make an image presented by default and then changed dinamically accordingly with users choice?

Hi Experts

I'm working with maps that must be presented accordingly with the user option.

When the page starts  the map "TODOS" has to be presented  and the radio button 'TODOS' option choosed.
img002
Acctually if  'TODOS',  'PNAE' or  'PPAIS' options  is assigned the correspondently map appear, correctly.
(in the case of TODOS first I must change to another option and then return to it)

Following the pictures  
img001
and
img003
here the code I use:
<!doctype html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<link href="css/custom.css" rel="stylesheet" />

<style type="text/css">
.map-frame {
  display: none;
}
</style>

</head>

<body>

<div class="wrapper">
<div class="container">

<?php $random = rand(10,1000) ?>

<div id="todos" class="map-frame">
    <iframe width='105%' height='600px' frameBorder='0' src='https://a.tiles.mapbox.com/v4/efuerte.xxxxx/attribution.html?q=<?php echo($random) ?>&access_token=pk.xxxxxx'></iframe>
</div>

<div id="pnae" class="map-frame">
     <iframe width='105%' height='600px' frameBorder='0' src='https://a.tiles.mapbox.com/v4/efuerte.oxxxx/attribution.html?q=<?php echo($random) ?>&access_token=pk.xxxxxxxxxxx'></iframe>
</div>

<div id="ppais" class="map-frame">
    <iframe width='105%' height='600px' frameBorder='0' src='https://a.tiles.mapbox.com/v4/efuerte.o30822h8/attribution.html?q=<?php echo($random) ?>&access_token=pk.xxxxxxxxxx'></iframe>
</div>

<input type="radio" name="editList" data-target="todos" class="map-select" checked=""/>TODOS 
<input type="radio" name="editList" data-target="pnae" class="map-select"/>PNAE
<input type="radio" name="editList" data-target="ppais" class="map-select"/>PPAIS

</div>
</div>

<script src="http://code.jquery.com/jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script>
$(function() {
  $('.map-select').change(function() {
     var selector = '';
     $('.map-select:checked').each(function() {
        selector += $(this).data('target');
     });
     $('.map-frame').hide();
     $('#' + selector).show();
  });
});
</script>
</body>
</html>

Open in new window


So, I need the map TODOS presented when the page opens. Like that:
img004
Could you suggest how could I get the job done by change the code I get?

Thanks in advance.
Eduardo FuerteDeveloper and AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Just put a style display block in the first map item
<div id="todos" class="map-frame" style="display: block">
    <iframe width='105%' height='600px' frameBorder='0' src='https://a.tiles.mapbox.com/v4/efuerte.xxxxx/attribution.html?q=<?php echo($random) ?>&access_token=pk.xxxxxx'></iframe>
</div>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Very good!

Thanks for the assistance!
Julian HansenCommented:
You are welcome Eduardo,
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Hello Julian!

I post another question referencing this subject ... when embeding the code in the original page.. something unexpected occurs....
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.