Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    jquery append in chrome issue

    I did something like this:

    $('#test').append("<option id='ddm'>added dropdown</option>");
    it shows its html in the browser but I can't see it when I view source, is this normal?


    Thanks.

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    "View Source" always is a view of the source as delivered by the server originally. Dynamic changes of the page don't show in "View Source" mode. You'll have to adhere to Developer Tools (like Firebug or built-in tools) to actually view the current dynamically altered source.


  •  

    Tags for this Thread

    Posting Permissions

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