Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

374
Vistas
Chrome extension - Input value set in JS won't get submitted

I am trying to set value of an input field that is on a webpage via Chrome extension. The value does get filled successfully, however when form is submitted, it gives error of input field being empty.

Input field code:

<input type="text" class="text-center CustomTextBox ng-pristine ng-valid ng-isolate-scope ng-not-empty ng-valid-maxlength ng-touched" autocomplete="off" min="0" maxlength="6" jcs-decimals="2" jcs-allow-null="false" jcs-decimals-hide-zero="true" ng-model="p.quantity" ng-disabled="p.OutOfStock" ng-blur="vm.QtyEntered(p)" ng-change="vm.qtyChanged(p)">

Javascript (inside inject.js of my chrome extension):

var foundinput = getElementsByTagName('input').item(0);
foundinput.value = 5.00;

Could it have anything to do with ng-change not getting triggered?

P.S. When value is entered manually, the form does submit successfully.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda