SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    innerHTML - is this right?

    Is innerHTML written with this combination of upper and lowercase letters, or is it written another way?

    I assume if I write it with the wrong combination in the code ajax won't work.



    Thanks

  2. #2
    SitePoint Addict sdleihssirhc's Avatar
    Join Date
    Feb 2009
    Posts
    387
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Do you mean uppercase for the tag names? It should work, regardless. Go ahead and try, and see what happens. If it doesn't work, please come back and let us know (with the code!).
    Last edited by sdleihssirhc; Nov 30, 2011 at 10:37. Reason: typo
    I'm the web overlord for Graphic Business Systems

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,788
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    innerHTML itself has to be written exactly like that as JavaScript is case sensitive. HTML is not case sensitive and so when referencing HTML tags from JavaScript the case doesn't matter (XHTML is case sensitive so tags there need to be lowercase).
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank You


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
  •