Inject Jquery Script: TypeError: n is not a function

Hi, im using the following Jquery in the rpachalenge inspect element console:

jQuery(‘[Id=“YZ7lv”]’).val(‘randomText’).trigger(‘change’)

it works perfectly, but when i use it in the ‘Inject Jqery Script’ activity, it throws the error:

Inject Jquery Script: TypeError: n is not a function

I am going beyond crazy as to why this wont work. Really appeciate any help.

@Arham_Shahzad,

You should be putting it in a function. Refer this solution.

@Arham_Shahzad

Welcome to the community

  1. If using inject js activity…please check the valid input types you can give
  1. Else if using inject jquery activity from market place please check here…
    Inject Jquery Script Activity - #5 by ppr

Cheers