Sasa Posted January 11, 2008 Report Posted January 11, 2008 ko es daru nepareizi, ja dabūju pretī undefined: var rec = document.getElementById('Query3NavLabel').value; alert(rec);
GedroX Posted January 11, 2008 Report Posted January 11, 2008 Kāds ir document.getElementById('Query3NavLabel').tagName?
andrisp Posted January 11, 2008 Report Posted January 11, 2008 GedroX, varēji jau vienkāršāk pajautāt, kas tas par elementu. :)
Sasa Posted January 11, 2008 Author Report Posted January 11, 2008 tagName elementam ir SPAN! ko tālāk?
GedroX Posted January 11, 2008 Report Posted January 11, 2008 (edited) andrisp -> Es kodu rakstu ātrāk par parastu tekstu. :D Sasa -> Nevis .value, bet gan .innerHTML Edited January 11, 2008 by GedroX
Sasa Posted January 11, 2008 Author Report Posted January 11, 2008 vērtību nolasīt sanāca, bet tagad kā es to varu sasplitot pa atsevišķām daļām, daļu no daļas atdala tukšums/space. un tad no tā visa sadalītā paņemt vajadzīgo vērtību!?
Aleksejs Posted January 11, 2008 Report Posted January 11, 2008 Pats jau gandrīz atbildēji ;) http://www.w3schools.com/jsref/jsref_split.asp
Recommended Posts