2011-05-16 103 views
0

好吧,我已經設置了我自己的對話框,並在對話框中放置了一個文本框和一個按鈕。我想要做的是讓他們在文本框中輸入信息,然後在關閉對話框後自動填充下一頁上的表單。我在自動填充部分存在問題。有任何想法嗎?這是我的對話框,我的表單名稱正在發貨。jquery對話框問題

showDialog(
    '<p>Enter in Non Client Job Code</p> 
    <div class="margin-top"><input type="text" size="15" name="projectnumber" id="projectnumber" value="" /><br /> 
    <input type="button" onclick="fillin()" value="Enter" />' 
); 
+1

不幸的是,您提供的代碼缺乏上下文,對於我們這些無法看到代碼其餘部分的人來說確實沒有用處。 – 2011-05-16 17:34:28

回答

0

我不確定這是否會解決問題,但您遺漏了結束標記。

showDialog(' 
    <p>Enter in Non Client Job Code</p> 
    <div class="margin-top"> 
     <input type="text" size="15" name="projectnumber" id="projectnumber" value="" /> 
     <br /> 
     <input type="button" onclick="fillin()" value="Enter" /> 
    </div> 
'); 
+0

它只是關閉的div標籤嗎?我可以調用這個函數就好了,它只是從函數自動填充表單。 – 2011-05-16 18:06:14