Using jQuery, I can't seem to change the value of an input.... even in the console

StackOverflow https://stackoverflow.com/questions/20549720

  •  01-09-2022
  •  | 
  •  

Вопрос

I'm using Adobe Business Catalyst and I'm trying to change the value of an input (in the admin area) using jQuery. When I use

 $('#inputID').val('blah')

it does not work. I also tried it in the console as well and nothing. I also tried targeting all text boxes and no values change.

$(':text').val('blah')

Why can't I change values programmatically? Any ideas how to get this working?

Это было полезно?

Решение

The html is probably sitting inside of an iframe or frame OR you got the wrong ID.

Find the iframe, use contents(), grab the element.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top