Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

372
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!