Jump to content

[SOLVED] Failing to retrieve data from HTML


stockton

Recommended Posts

In my HTML page that calls Ajax I have a field defined as:-

<td width=195 style="position:absolute; visibility: hidden;" id="CNumber" name="CNumber"></td>

and in Ajax I attempt to retrieve its contents by :-

        var KaartNommer      = document.getElementById("CNumber").innerHTML;

and I have also tried:-

        var KaartNommer      = document.getElementById("CNumber").value;

both fail and doing an alert() I get told that it is undefined.

 

Please tell me how I got this wrong as other field values on the same webpage defined & retrieved in the same manner work fine.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.