Html of template haven't got values

I'm trying to get html of my input with some value ({{title}} is some String, it displays in my template, but not in console.log)

<div class="www">
    <input name="title" id="post_edit_title" value="{{title}}"/>
</div>

    $(t.find(".www")).html()

and it outputs <input name="title" id="post_edit_title"/>

How to get correct html ?

Answers


Perhaps a couple of ways...

If www is one of elements with that class, use eq to grab the one you need:

$('.www').eq(0).html();

Or target the input by its id and grab the HTML of its parent.

$('#post_edit_title').parent().html();

DEMO


Need Your Help

what is the proper way to set a global socket timeout in python?

python sockets python-requests httplib urllib3

I am using a number of different libraries, which each of which use different underlying ways to make socket connections, like urllib3, requests, and httplib. this is in python 2.7.5.

POSIX threads and signals

c pthreads signals

I've been trying to understand the intricacies of how POSIX threads and POSIX signals interact. In particular, I'm interested in: