html - My JQuery code is not working in Internet Explorer while working on other Browser like Mozilla and Chrome -
JQuery code in this code is not working in Internet Explorer while working on Firefox and Chrome Do not add commas (,) to the last asset If IE does not support it, then delete that comma and I think it will work properly .. best. Also change your input syntax. The correct syntax is: For example - There is a good code habit. Renew // alert ($ ('input [type =' text ']'). Eq (0) .val ()); Why this alert is not shown here?
& lt; Html & gt; & Lt; Top & gt; & Lt; Style & gt; div {border: 2px solid blue; } .a {color: red} B {background-color: green; }. C {font-size: 55px; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container" & gt; This is my div & lt; input type = "text" value = "50" name = "first_input" & gt; The first label & lt; / Input & gt; & Lt; Button & gt; First button & lt; / Button & gt; & Lt; Input type = "text" & gt; The second label & lt; / Input & gt; & Lt; Input type = "text" & gt; Third label & lt; / Input & gt; & Lt; Input type = "text" & gt; Fourth label & lt; / Input & gt; & Lt; Button & gt; The second button & lt; / Button & gt; & Lt; Input type = "text" & gt; The fifth label & lt; / Input & gt; & Lt; Button & gt; Third button & lt; / Button & gt; & Lt; Input type = "text" & gt; The sixth label & lt; / Input & gt; & Lt; Button & gt; Fourth button & lt; / Button & gt; & Lt; Input type = "text" & gt; Seventh label & lt; / Input & gt; & Lt; Button & gt; The fifth button & lt; / Button & gt; & Lt; Button & gt; Six buttons & lt; / Button & gt; & Lt; Button id = "ss" & gt; Seventh button & lt; / Button & gt; & Lt; Label id = "lbl1" & gt; Hello & lt; / Label & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('input: text'). Eq (0) .attr ({title: 'Please input input', placeholder: 'insert value', name: 'input_type' , // value: 25}); $ ('ss') Click (function () {& lt;! - alert ($ ('input [type = "text"]'). get (0) .value) ; It does not work on the I explorer -> Alert ($ ('input [type ='] text "] '). Eq (0) .val ()); & lt ;! - this I. a Supplier is not working on - & gt;});}); >
$ ('input: text'). eq (0) atr ({title: 'please input price' Placeholder: 'Insert a value', name: 'input_type', & lt; - ERROR HERE // value: 25});
& lt; Input * attributelist * />
& lt; Input type = "text" value = "50" name = "first_input" />
& lt; Div id = "container" & gt; This is my div & lt; Input type = "text" value = "50" name = "first_input" /> & Lt; Button & gt; First button & lt; / Button & gt; & Lt; Input type = "text" / & gt; The second label & lt; Input type = "text" / & gt; Third label & lt; Input type = "text" / & gt; Fourth label & lt; Button & gt; The second button & lt; / Button & gt; & Lt; Input type = "text" /> fifth label & lt; Button & gt; Third button & lt; / Button & gt; & Lt; Input type = "text" /> sixth label & lt; Button & gt; Fourth button & lt; / Button & gt; & Lt; Input type = "text" /> seventh label & lt; Button & gt; The fifth button & lt; / Button & gt; & Lt; Button & gt; Six buttons & lt; / Button & gt; & Lt; Button id = "ss" & gt; Seventh button & lt; / Button & gt; & Lt; Label id = "lbl1" & gt; Hello & lt; / Label & gt; & Lt; / Div & gt; $ (Document) .ready (function () {$ ('input: text'). Eq (0) .attr ({title: 'Please input input', placeholder: 'insert value', name: 'input_type' , Value: 25}); $ ('ss'). Click (function () {warning ($ (' input [type = 'text "]'). Get (0) .value);})}} ;
Comments
Post a Comment