Sasa Posted January 11, 2008 Report Share Posted January 11, 2008 ko es daru nepareizi, ja dabūju pretī undefined: var rec = document.getElementById('Query3NavLabel').value; alert(rec); Link to comment Share on other sites More sharing options...
GedroX Posted January 11, 2008 Report Share Posted January 11, 2008 Kāds ir document.getElementById('Query3NavLabel').tagName? Link to comment Share on other sites More sharing options...
andrisp Posted January 11, 2008 Report Share Posted January 11, 2008 GedroX, varēji jau vienkāršāk pajautāt, kas tas par elementu. :) Link to comment Share on other sites More sharing options...
Sasa Posted January 11, 2008 Author Report Share Posted January 11, 2008 tagName elementam ir SPAN! ko tālāk? Link to comment Share on other sites More sharing options...
GedroX Posted January 11, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
Sasa Posted January 11, 2008 Author Report Share 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!? Link to comment Share on other sites More sharing options...
Aleksejs Posted January 11, 2008 Report Share Posted January 11, 2008 Pats jau gandrīz atbildēji ;) http://www.w3schools.com/jsref/jsref_split.asp Link to comment Share on other sites More sharing options...
Recommended Posts