Skip to content

Instantly share code, notes, and snippets.

View vikramjeet-dev's full-sized avatar

Vikramjeet Choudhary vikramjeet-dev

View GitHub Profile
@vikramjeet-dev
vikramjeet-dev / Set another input type value same as entered previously .
Created April 9, 2021 07:12
Set another input type value same as entered previously .
//html input type
<input id="current_census" type="text" value="100" onkeyup="findPPD(this.id)">
<br>
<input type="text" id="rn_lvn_census" value="100" onkeyup="findPPD(this.id)">
<br>
<input type="text" id="cna_rna_census" value="100" onkeyup="findPPD(this.id)">
<br>
<input type="text" id="data" value="100" onkeyup="findPPD(this.id)">
<br>
<input type="text" id="census" value="100" onkeyup="findPPD(this.id)">
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With");
include('wp-load.php');
$usernme = $_GET['usermail'];
$pass = $_GET['password'];
$userpass = md5($pass);
if(isset($usernme) && !empty($pass)){
$user = get_user_by( 'login', $usernme );
//So there is no backend settings to reorder the account section tabs in ultimate member plugin wordpress so use below code in your footer.php before get_footer();
script type="text/javascript">
$( window ).load(function() {
$("*[data-tab=\"general").removeClass('current');
$("*[data-tab=\"allentries").addClass('current');
$(".um-account-tab-general").css("display", "none");
$(".um-account-tab-allentries").css("display", "block");
$("#min").prop('disabled', false);
$("#max").prop('disabled', false);
$("#add_filter").prop('disabled', false);