Skip to content

Instantly share code, notes, and snippets.

View aimahdi's full-sized avatar
💭
Working on something bigger

Amimul Ihsan aimahdi

💭
Working on something bigger
View GitHub Profile
@aimahdi
aimahdi / remove_email_footer_fluent_form.php
Created August 16, 2021 11:04
Remove email notification footer in WP Fluent Forms
@aimahdi
aimahdi / input_upparcase_convert.js
Created August 16, 2021 10:18
This snippet will capitalise input
let inputBox = document.getElementById("ff_150_input_text");
inputBox.addEventListener('input', function(){
inputBox.value = inputBox.value.toUpperCase();
});
@aimahdi
aimahdi / range_slider_value_customize.js
Created August 15, 2021 06:03
This code will customize range slider's value and process
let slider = document.getElementById('ff_148_rangeslider');
let text = document.querySelector('.ff_range_value');
let text2 = document.querySelector('.ff_range_value_2');
slider.onchange=function(){
let value = document.getElementById('ff_148_rangeslider').value;
value *= 15;
@aimahdi
aimahdi / password_check.js
Created August 15, 2021 06:01
The code will make second passwords field's text red until the password matched
//Change id with your password field's id
let passwordOne = document.getElementById("ff_143_password");
let passwordTwo = document.getElementById("ff_143_password_again");
passwordTwo.addEventListener('keyup', function(){
let passwordTwo = document.getElementById("ff_143_password_again");
console.log(passwordTwo.value);
//code here
if(passwordTwo.value==passwordOne.value){
@aimahdi
aimahdi / url_redirect.js
Created August 15, 2021 05:57
JavaScript URL Redirect from a dropdown/chained select field
let urlbox = document.getElementById("ff_150_chained_select_Website_"); //changed id with your specific id
urlbox.onchange = function(){
let url = document.getElementById("ff_150_chained_select_Website_").value;
window.open(url);
}