jquery selector can't read from hidden field

后端 未结 6 1210
孤独总比滥情好
孤独总比滥情好 2020-12-16 15:06

(answers aggregated into another question)

The following jquery 1.3.2 code works:



        
6条回答
  •  囚心锁ツ
    2020-12-16 15:39

    Not sure why that would be failing. I do the same thing at work on a regular basis, and it works regardless of the formfield being hidden or not.

    Perhaps try this:

    
    
    
    

    That will get you the value of the hidden field. To get the value out of a form field, the .val() method needs to be used.

提交回复
热议问题