www.webdeveloper.com
Results 1 to 3 of 3

Thread: Jquery or JS .. either way

  1. #1
    Join Date
    Mar 2013
    Posts
    2

    Jquery or JS .. either way

    I've done this before, a while back. But, now cannot remember...


    I have a webpage with 2 div. One (div id ="link") contains multiple link buttons. The other div is blank (div id="blank").

    I would like to click a link button from 'link', which will pull text from an entirely different webpage and display results in the div 'blank'

    Now each clickable button in 'link' will display different data in 'link'

    Anyone?

  2. #2
    Join Date
    Mar 2013
    Posts
    2
    Currently I am trying this:

    <script type="text/javascript">
    function Msg1(){
    document.getElementById('myText').innerHTML = 'UGH';
    }
    </script>
    <input type="button" onclick="Msg1()" value="Results" />
    <p id="myText"></p>
    This displays UGH directly below the button. I cannot get it to display in the 'blank' div as well.

  3. #3
    Join Date
    Dec 2012
    Location
    NSW Australia
    Posts
    73
    Quote Originally Posted by WildShroom View Post
    This displays UGH directly below the button. I cannot get it to display in the 'blank' div as well.
    What make you think it is not displaying in the DIV?

    Also do you want it to display twice????

    that is using the JS supplied

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles