<div class="ctrlHolder">
<label for="" id="name.label">Name</label>
<input name="name" id="name" type="text" class="textInput small" />
<p class="formHint">The name of the item you are submitting</p>
</div>
How can I insert predefined text into a input element. I'd like this function to active when the user doubleclicks the label element.
$('#name.label').dblclick(function(){
$('#name').val('some text');
});