SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    May 2004
    Location
    London
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hyperlink onclick activating checkbox

    I have an image, and the image has a link. How can I do so that when I click on the image, it activates a checkbox that is directly beneath it?

  2. #2
    SitePoint Enthusiast johnmanoahs's Avatar
    Join Date
    Jul 2004
    Location
    India
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Maria Sohas
    I have an image, and the image has a link. How can I do so that when I click on the image, it activates a checkbox that is directly beneath it?
    Code:
    <img src="some.jpg" onclick="document.getElementById('theCheckBoxID').disabled = false;"/><BR>
    <input type="Checkbox" id="theCheckBoxID" name="theCheckBoxID" disabled/>

    HTH,

    John
    If you think you are too small to make an
    influence, try sleeping with a mosquito in a closed room.

  3. #3
    SitePoint Zealot
    Join Date
    May 2004
    Location
    London
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    John, many thanks that works great!


Bookmarks

Posting Permissions

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