Wednesday, July 16, 2014

How can I set the SRC attribute to an IFRAME with JQuery?

You can set the SRC attribute of the iFrame using JQuery like following:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
</script>
<script>

     $(document).ready(function(){

          $("#btn").click(function () {
          
             $("#iframe").attr("src", "Home.aspx");
             return false;

          });

      });

</script>



No comments:

Post a Comment

React-select is very slow on larger list - Found solution - using react-window

 I had more than 4000 items in searchable dropdownlist. I have used react-select but it was very slow. finally I found complete solution to ...