I have a normal text input box on a page. The controller renders results
to another div, but I need to clear the content of the input box after a
search. Most of my interaction is done with something like
page.replace_html(‘div’,newcontent)
but in this case the element I am addressing is a inputbox and doesn’t
have inner html, only a value? how can I adress this value?
Would it be possible to set other specific attributes of DOM elements in
the same way?
Why dont you experiment with it yourself to learn this, now that you
know the syntax
would page[‘id_of_element’].enabled = false work?
I dont think so, but “disabled = true” will work
Would it be possible to set other specific attributes of DOM elements in
the same way?
Why dont you experiment with it yourself to learn this, now that you
know the syntax
would page[‘id_of_element’].enabled = false work?
I dont think so, but “disabled = true” will work
I am humbled. Thanks again!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.