Miva Merchant Development by Scot's Scripts

JQUERY: Get and Set Form Input Values

Miva Knowledge Base
JQUERY: Get and Set Form Input Values
Important Notice: This information is for internal reference only. Use at your own risk.
Does Google actually understand your Miva Merchant store? Our JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

JQUERY: Get and Set Form Input Values

Scot Ranney • December 22, 2023


Super easy. Get and Set input values with Jquery is almost the same. 

Getter:

var title = $('#doc_title').val();

Setter:

$('#doc_title').val('this is a new title);

https://www.scotsscripts.com/mvblog/jquery-get-and-set-form-input-values.html

mvkb_jquery