Miva Merchant Development by Scot's Scripts

JQUERY: Get and Set Form Input Values

Miva Random Code Trivia

Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

WARNING:

This information is offered "AS IS" for internal reference only. Use at your own risk.
Does AI actually understand your Miva Merchant store? Our smart JSON-LD schema generator makes sure it does. Contact us to get started. (more info)
SEO Audit & Inquiries • News & Updates • SEO for Miva Merchant

JQUERY: Get and Set Form Input Values

THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED;
THE AUTHOR DISCLAIMS ALL LIABILITY FOR ANY DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR STORE DISRUPTIONS ARISING FROM ITS USE.

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

jquery