In the jquery easyui date control, how to use JS to get the set date value on the page
jquery gets the value of the easyui date control
jquery easyui date box
There is such a date text box:
Use easyui to select the date value for the text box, and then, to Get the latest value in this date box in JS.
I originally thought this was a simple question, just
var dv = $('#mdate').val();
wouldn’t it be OK? But contrary to expectations, what I got was empty. If I assigned an initial value to this text box in the background, no matter what value you select, you will still get the initial value.
The solution is to use easyui's own function to get it:
var dv = $('#mdate').datebox('getValue');
The reason is that easyui has added a hidden In the input form, it assigns the value to that, but it is still very strange that when the form is submitted, the form named mdate still submits the correct value. I suspect that some manipulation was done before submission, and the value is dynamically given The original form is assigned a value. Didn't study it carefully.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Zend Studio 13.0.1
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version
Recommended: Win version, supports code prompts!
