posted 6 years ago
Bear Bibeault
Thanks for suggestion!!
I have used siblings() in the following way. Please have a look
On click of text type element, hidden element's value also should be set. So, I am trying to use the below jQuery script
with "$(this).siblings('input:hidden').val(i); " line , variable "s" value is undefined. nothing is happening
I am not able to get the existing hidden element value to a variable by "var x= $(this).siblings('input:hidden').val();"
I have tried using find() as well by
var s=$(this).find('input[type=hidden]').val(i); - even though no luck..
Can you please suggest me where I did wrong ?