Manual Posted May 9, 2013 Report Share Posted May 9, 2013 man ir tris input tagipiemeram input1 input2 input3.Cik nopratu man vajag izmantot ajaxu. Gribu ta ja ievada input1 tad input2 un input3 pazūd un otrādāk. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 9, 2013 Report Share Posted May 9, 2013 Ajax nē, tikai JavaScript. Quote Link to comment Share on other sites More sharing options...
Manual Posted May 9, 2013 Author Report Share Posted May 9, 2013 tev nav kads piemers? javu nemaku rakstiit tik maku pielabot. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted May 9, 2013 Report Share Posted May 9, 2013 JavaScripts, ne Java. Ja nemāki, pamācies! Quote Link to comment Share on other sites More sharing options...
indoom Posted May 9, 2013 Report Share Posted May 9, 2013 Piemērs http://jsfiddle.net/H6BKH/ Quote Link to comment Share on other sites More sharing options...
vostro Posted May 9, 2013 Report Share Posted May 9, 2013 Pieslēdz Jquery bibliotēku un to varēsi izdarīt ļoti vienkārši 3 rindiņās. Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted May 9, 2013 Report Share Posted May 9, 2013 ja ievada tekstu izvēloties paste no peles popupa, tad nedarbojas. Quote Link to comment Share on other sites More sharing options...
indoom Posted May 10, 2013 Report Share Posted May 10, 2013 Jā, un ie10 ir x pie input lauka, ar ko var uzreiz izdzēst tekstu, tas ar netiek reģistrēts. Tas ir tikai piemērs, autors apgalvoja, ka māk pielabot "javu", tad jau javascriptu arī mācēs. Var izmantot vēl papildus blur http://jsfiddle.net/H6BKH/1/ Quote Link to comment Share on other sites More sharing options...
codez Posted May 10, 2013 Report Share Posted May 10, 2013 (edited) Tas būs dīvains topiks, ja netiks papildināts ar normālu jquery versiju: http://jsfiddle.net/H6BKH/2/ <div id="ig"> <input type="text" value="" /> <br/> <input type="text" value="" /> <br/> <input type="text" value="" /> </div> $("#ig").on("keyup blur","input",function(){ $("#ig input").not(this).toggle($(this).val()==""); }); Edited May 10, 2013 by codez Quote Link to comment Share on other sites More sharing options...
Manual Posted May 22, 2013 Author Report Share Posted May 22, 2013 oo, paldies. bet vai ir iespēja uztaisīt tā, ka es ievadu input1 un pazūd input2 un input3, bet kad ievadu vai nu input2 vai input3 tad pazūd tikai input1 un paliek abi input2 un input3.un būtu labi ja viņi nevis pazūd bet uztaisās tā, ka neko nevar ierakstīīt. Quote Link to comment Share on other sites More sharing options...
rpr Posted May 23, 2013 Report Share Posted May 23, 2013 jā, var. ir attribūti readonly Quote Link to comment Share on other sites More sharing options...
Manual Posted May 23, 2013 Author Report Share Posted May 23, 2013 varētu lūdzu parādīt piemēru? Quote Link to comment Share on other sites More sharing options...
anonīms Posted May 23, 2013 Report Share Posted May 23, 2013 tas arī ir piemērs ;D Quote Link to comment Share on other sites More sharing options...
Manual Posted May 26, 2013 Author Report Share Posted May 26, 2013 bet koda zinja. Quote Link to comment Share on other sites More sharing options...
marrtins Posted May 26, 2013 Report Share Posted May 26, 2013 Kārtējais vājprāta topiks :( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.