1
<form id='test_form' name='test_form'>
<input type='hidden' name='test_input' value='0' />
</form>

<form id='test_form_2' name='test_form_2'>
<input type='hidden' name='test_input' value='0' />
</form>

I need to change value of test_input inside the test_form_2 Is there one line straight code for that ?

1 Answer 1

1
$('#test_form_2 input[name="test_input"]').val('whatever');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.