我有一個文本框,我試圖讓這樣值不獲取使用jQuery的文本框中
var comment = $("input#diaMissedPucomments").val();
價值,但價值不同時取我已經使用這個
$('input:checked').each(function() {
selectedValues =$(this).val()+","+selectedValues ;
});
以獲得選定複選框的值,它工作正常。
<div style="display:none;" id="diaMissedPU" title="Missed P/U Comments" >
<table>
<tr>
<td>Enter Comments : </td>
<td><input tyep="text" id="diaMissedPucomments" name="diaMissedPucomments" /></td>
</tr>
</table>
</div>
上面是HTML和我想的diaMissedPucomments
如何做到這一點的價值。
請幫我解決這個問題。
問候
非常感謝所有您的答案,但我仍然沒有得到答案 –