Bug Tracker

Modify

Ticket #6464 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

setting .attr value on a hidden form field

Reported by: n1prodigy Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: .attr, hidden, form, value Cc:
Blocking: Blocked by:

Description

 http://brownwebdesign.com/jquery-attr-value.html

If value is set to "", .attr will not change/update value.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

Seems to work for me in both Firefox and IE8. I put this line in just to be sure:

alert($(this).parents('form').children('.hosted_button_id').attr('value'));

Works fine in form 1.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.