मैं निम्न HTMLछिपा हुआ क्षेत्र मूल्य Jquery प्राप्त करें?
<input type="hidden" name="conf1" value="7th IEEE/IFIP International Conference on Embedded and Ubiquitous Computing (EUC-09)">
<input type="hidden" name="conf2" value="IEEE International Symposium on Parallel and Distributed Processsing with Applications">
<input type="hidden" name="conf3" value="jkhga">
<input type="hidden" name="conf4" value="test">
<input type="hidden" name="conf5" value="The 3rd International Conference on Adaptive Business Information Systems (ABIS'09)">
<input type="text" name="published">
है और मैं एक सरणी jQuery का उपयोग करने में छिपा क्षेत्रों के मूल्यों को प्राप्त करने के लिए कोशिश कर रहा हूँ। यहां मैंने कोशिश की है:
var conferences = new Array();
conferences[0] = $('#conf1').val();
conferences[1] =$("[name='conf2']").val();
conferences[2] =$("[name='conf3']").val();
conferences[3] = $("[name='conf4']").val();
conferences[4] =$("[name='conf5']").val();
क्या कोई मुझे उन्हें पढ़ने के तरीके पर निर्देशित कर सकता है?
अग्रिम धन्यवाद
डीन
समझाने के लिए whay '.val()' '.attr()' काम करता है, ताकि लोगों को बेहतर समस्या को समझ सकते हैं और जब जबकि काम नहीं किया अपने जवाब पर विचार करें यह समाधान लागू है। – Djizeus