jQuery: hide and show an input element

后端 未结 6 2136
情话喂你
情话喂你 2021-02-19 09:42

I\'m trying to do is hiding/showing a certain input object if a select value is checked.

Code in JSFiddle

The HTML part of the code is here:

<         


        
6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 09:55

    You can use css to hide it initially

    #add_fields_placeholderValue{display:none;}
    

    http://jsfiddle.net/FarVX/20/

    Also you have multiple elements with the same id(pointed out by Brandon), which is not valid

提交回复
热议问题