Link to home
Start Free TrialLog in
Avatar of napoleontan
napoleontan

asked on

How to search hidden control inside a jquery control

I have a dialog that contains a grid.

I was trying to set the hidden value using the $('hiddenInputName').val('avalue') and get it using val method with no parameter but it does not seem to work.

I resolved back in doing it in document.getElementById('hiddenInputName').value = 'avalue'.

Is there a way to do it in jquery?
var abc = target.get(0).textContent;
 
// The jquery method Im trying
$('hiddenInputName').val(selectedKatasiki);
 
// The old style javascript that works
document.getElementById('hiddenInputName').value = abc;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of alien109
alien109
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial