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.

Yes. Most browsers show the source of the initially loaded page (because that is what gets cached). If you use development tools, you can see what's happening live.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.