jquery - How do I make the form only submit to iframe being used -


मेरे पास एक jquery date picker है:

  & lt; script & gt; $ (फ़ंक्शन () {$ ("#datepicker") .datepicker ();}); & Lt; / स्क्रिप्ट & gt;   

अपने होम पेज पर मुझे उस दिनांक को जमा करने की ज़रूरत है, जो उस एफ़्रैम पर है जिसे उपयोगकर्ता ने रेडियो बटन के जरिये चुना है

  & lt; div class = "loginins_details_container" & gt; & lt;! - शीर्ष कंटेनर - & gt; & Lt; iframe id = "iframe" src = "math_iframe.php" width = "100%" ऊंचाई = "100%" & gt; & lt; / iframe & gt; & Lt; / div & gt; & lt; div वर्ग = "iframe_container" & gt; & LT; प्रपत्र & gt; & Lt; इनपुट प्रकार = "रेडियो" नाम = "iframe" value = "type" चेक = "चेक किया गया" onclick = "go ('math_iframe.php')" / & gt; गणित & lt; br & gt; & Lt; इनपुट प्रकार = "रेडियो" नाम = "iframe" value = "type" onclick = "go ('ict_iframe.php')" / & gt; आईसीटी & lt; / form & gt; & Lt; / div & gt;    

यदि आप #datepicker का मान प्राप्त करना चाहते हैं iframe में माता-पिता से आप उपयोग कर सकते हैं

  $ ("# datepicker", window.parent.document) .val ();    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -