I have code like this not able connect with next page after selecting location

I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.
   <!--Html Content-->
<!doctype html>
<html>
<body>

I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.

      
"; $sql = mysqli_query($db, "SELECT LocationName From arealistmain"); $row = mysqli_num_rows($sql); if($row>0){ while ($row = mysqli_fetch_array($sql)){ echo "" .$row['LocationName'] . ""; } echo ""; } ?>
</div> </form> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </div> <!-- /.container --> <!--Java Script--> <!--I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.--> function myFunction() { var x = document.getElementById("myTopnav"); if (x.className === "topnav") { x.className += " responsive"; } else { x.className = "topnav"; } } /* <Search Bar> */ $(document).ready(function(e){ $(".form-control option data-tokens").click(function(){ $(this).parents(".form-group row").find('.btn').html($(this).text() + ' <span class="caret"></span>'); $(this).parents(".form-group row").find('.btn').val($(this).data('value')); $("#locName").val($(this).data('value')); }); I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location. I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.

I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.
I have problem with java script in the dropdown part,data is fetching properly.but after selecting location also the page shows again select your location.

    }); 
</body>
</html> 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s