5 Replies - 473 Views - Last Post: 03 November 2014 - 11:10 AM

#1 Aluminium   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 12-July 14

Connecting html to javascript code

Posted 01 November 2014 - 02:22 PM

Javalinking

http://www.bootply.com/cXw26vgLKSbootply example

The above links will take you to my code. The idea is to click on one of the following buttons and get the following image to display while hiding all others. The code I have should work, but it's not... maybe I am not connecting correctly?

Is This A Good Question/Topic? 0
  • +

Replies To: Connecting html to javascript code

#2 laytonsdad   User is offline

  • I identify as an attack helicopter!
  • member icon

Reputation: 467
  • View blog
  • Posts: 1,998
  • Joined: 30-April 10

Re: Connecting html to javascript code

Posted 03 November 2014 - 07:58 AM

In your jsfiddle example you just need to add the jquery to the body. look at the left panel and add jquery to the body of the script and it will work.
Was This Post Helpful? 0
  • +
  • -

#3 Aluminium   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 12-July 14

Re: Connecting html to javascript code

Posted 03 November 2014 - 08:09 AM

View Postlaytonsdad, on 03 November 2014 - 07:58 AM, said:

In your jsfiddle example you just need to add the jquery to the body. look at the left panel and add jquery to the body of the script and it will work.

Sadly that did not work... any other ideas?
Was This Post Helpful? 0
  • +
  • -

#4 laytonsdad   User is offline

  • I identify as an attack helicopter!
  • member icon

Reputation: 467
  • View blog
  • Posts: 1,998
  • Joined: 30-April 10

Re: Connecting html to javascript code

Posted 03 November 2014 - 08:13 AM

What do you mean it did not work? it worked for me just fine. Did you add jquery and select to have it at the bottom of the page in stead of onload?
Was This Post Helpful? 1
  • +
  • -

#5 laytonsdad   User is offline

  • I identify as an attack helicopter!
  • member icon

Reputation: 467
  • View blog
  • Posts: 1,998
  • Joined: 30-April 10

Re: Connecting html to javascript code

Posted 03 November 2014 - 08:19 AM

It is working here.
Was This Post Helpful? 1
  • +
  • -

#6 Aluminium   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 12-July 14

Re: Connecting html to javascript code

Posted 03 November 2014 - 11:10 AM

View Postlaytonsdad, on 03 November 2014 - 08:19 AM, said:

It is working here.

You're a saint. Thank you for your answer. That was exactly it. I had it on "onload" Thanks!!!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1