Quantcast
Channel: jQuery get DOM element as string - Stack Overflow
Viewing all articles
Browse latest Browse all 6

jQuery get DOM element as string

$
0
0

Say I have

$(":input[type=text]:first")

How do I get

<input type="text" value="" size="28" maxlength="140" tabindex="1" placeholder="search" class="textbox" name="q" autocomplete="off">

Assuming I run this on SO?

Update I don't want to call .parent() since I have lots of other stuff in the parent element.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images