Jump to content

[SOLVED] in IE .value works, in Netscape not


Jim from Oakland

Recommended Posts

fenway

Thanks for offering to assist.  I'm not sure how to be more clear. That is the exact code.  It is in a longer js function that does the same thing several times. The entire funciton works fine in IE but in Navagator it does not.

I am merely looking to get the value from a hidden input field. In my example the hidden field name is Item1Price
<input type="hidden" name="Item1Price" value=12.99>

How do I retrieve the value 12.99?

Note: pItemIndex is an integer.
Link to comment
Share on other sites

Thanks again fenway!

Need id Indeed!  I typed the example hidden input tag in the previous post rather than say copying it from the html source.  Here is what I have in the html source.

<INPUT type="hidden"
name="Item1Price"
id="Item1Price"
value=60.5>

<INPUT type="hidden"
name="Item1Qty"
id="Item1Qty"
value=0>

I am NOT using a form, just a few input (events) that js responds to. Might that be THE solution?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.