SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Checkbox mark

  1. #1
    SitePoint Enthusiast Marcelo's Avatar
    Join Date
    Oct 2003
    Location
    Buenos Aires
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Checkbox mark

    Hi, I'm listing a query as HTML from a database.
    I'd like to enable a checkbox at runtime.
    That is... When I find a field=1 I want to have it selected. If 0 deselected.
    Is it possible right with HTML or do I need Javascript?
    In both cases, how can I do this?

    Thanks in advance,

    Marcelo
    Marcelo

  2. #2
    SitePoint Enthusiast ACJavascript's Avatar
    Join Date
    Nov 2003
    Location
    CT
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using a server-side script?

    Since your using a database thats why I ask.

    if you are what language?
    A*C
    ------------------
    ACJavascripts.com
    AITCommunity.com FOR SALE!

  3. #3
    SitePoint Enthusiast Marcelo's Avatar
    Join Date
    Oct 2003
    Location
    Buenos Aires
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ACJavascript
    Are you using a server-side script?

    Since your using a database thats why I ask.

    if you are what language?
    Thanks AC, I've solved it buy adding checked to the input tag.
    It was an html issue.

    Marcelo.

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Marcelo:

    <input......checked="checked">

    [XHTML compliant]
    ::: certified wild guess :::


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
  •