将值插入jQuery文件的输入中

I want insert text into an input in a jQuery file -> insert a value="" into this input field, I try with: "+this.default_text+" but it doesn't work.

This is my code

<div class="chzn-search">
    <input value="' + this.default_text + '" type="text" autocomplete="off" />
    <a href="javascript:void(0)" class="chzn-single chzn-default" tabindex="-1">
        <span>' + this.default_text + '</span>
        <div>

If you want to set a value to input

  1. Set an id to input

    <input value="" type="text" autocomplete="off" id="input1"/>
    
  2. Your code in jQuery could be like this:

    $("#input1").val(); //set empty value
    
    
    $("#input1").val(1); //set int value