I am trying to dynamically change the actual HTML value
attribute of an input using jQuery. Although using input.attr(\'value\', \'myNewVal\');
wor
I have a case in which jQuery function .val()
and .attr("value", "...")
works incorrect for value with url. Functions update the user interface but it doesn't effect with DOM(source). In this case should be used:
jQueryObj[0].setAttribute("value", "...");
It's right for jQuery v1.5.* => v1.6.*, for another versions it's not be checked.