Greasy Fork is available in English.

게시판 » 개발

Helpme with this code

§
작성: 2024-04-24

How to fill two textbox with the same Element , i try use this code but only one textbox filled (first textbox) the second textbox not filled, here's the code. " // Function to input value and click "NEXT STEP"
function inputAndClickNextStep() {
// Find both textboxes
var inputElement1 = document.querySelector('input[name="antibot_number_0"]');
var inputElement2 = document.querySelector('input[name="antibot_number_1"]');

// Check if both textboxes are present
if (inputElement1 && inputElement2) {
// Fill both textboxes with the value
inputElement1.value = "123";
inputElement1.dispatchEvent(new Event('change'));
inputElement2.value = "789";
inputElement2.dispatchEvent(new Event('change'));

// Find and click the "NEXT STEP" button
var nextButton = document.querySelector('button.custom-button[type="submit"]');
if (nextButton) {
nextButton.click();"

§
작성: 2024-06-20

Hello, you can contact an outsource web development company. I just do my projects myself and manage them myself, but when I don't have time or can't, I turn to them.

댓글 남기기

댓글을 남기려면 로그인하세요.