yeahz Posted December 12, 2008 Report Share Posted December 12, 2008 Pieņemsim ka man ir šāds kods: <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> Kā lai panāk, kad, piemēram, uzpiež uz Audi, tad izleks vēlviens select tags ar šādu saturu: <select> <option value="a4">A4</option> <option value="a6">A6</option> </select> Link to comment Share on other sites More sharing options...
Delfins Posted December 12, 2008 Report Share Posted December 12, 2008 onChange="doJob()" Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 12, 2008 Report Share Posted December 12, 2008 2 risinajumi: 1) kad izvelas kautko ialsam ar AJAX datus --> attelojam <div>kur japaraadaas </div> 2) Uzreiz uztaisam vajadziigos <div id="x1" styele="display:none;">dati1</div> <div id="x2" styele="display:none;">dati2</div> un peec vajadziibas atveram vajadziigo (paradam ar displey:block ..) parejos noslepjot .. Link to comment Share on other sites More sharing options...
codez Posted December 12, 2008 Report Share Posted December 12, 2008 pārējie nav jāslēpj, jāslēpj tikai viens - tas, kurš redzams. Parādot, saglabājam, kuru parādījām, tad rādot nākamo, slēpj tikai to. Link to comment Share on other sites More sharing options...
Recommended Posts