Please help me: modify iframe content

1k Views Asked by At

I want to modify iframe of this source http://www.mtel.ba/imenik/index.php

I want to hide and choose one selected default value from list.

<div class="menu-list">
                    <select name="administrative_unit_id">
                        <option value="" selected="selected">Svi gradovi</option>
                        <option value='262'>Banja Luka (051)</option><option value='301'>Bijeljina (055)</option>

I want to made phone book for one city. is it possible? and how? I was try with jquery and file get contents but .... Thanks

1

There are 1 best solutions below

3
On BEST ANSWER

If the site is on the cross domain use proxy page.

Create a new PHP page like that

<?php 

echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>'; //insert jquery here

$file = file_get_content('http://www.mtel.ba/imenik/index.php');

echo $file;

echo "<script>";
echo "";//jQuery script here
echo "</script>";

Then insert this page as iframe