I have a javascript function that I am trying to update. If I replace the label with a text box, it works fine, but nothing happens with the label!
Shortcut example:
<label id="163" name="163">Some text.</label>
Javascript code:
$("#163").val("meep");
The method valsets the value of the input element. This will not affect other elements, including<label>
val
<label>
You need to call a method textthat sets the text of any element.
text
For instance:
$("#163").text("meep");
<label> , "". , . text(str):
text(str)
Try the text method:
In addition, IDand NAMEattributes must not start with a number, although in most cases it will not actually cause problems.
ID
NAME
Source: https://habr.com/ru/post/1728363/More articles:How can I prevent the LinqDataSource Where clause from being reset after returning? - asp.netJQuery rotating banner - javascriptHow to force a full return from code? - ajaxHow do servlets work? - javaWhere can I find the "delegate" and "datasource" documentation for an NSTableView? - cocoaMissingNativeError loaded when importing a Jar file into BlackBerry - javaDetect background click in jQuery - jqueryIs it possible to change the package log level in log4j? - javaCross-platform telnet ncurses session automation solution - ncurseshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1728368/restful-modeling-of-button-presses-that-invoke-server-side-actions-to-a-resource&usg=ALkJrhh6E2OjTgXnUWc54NJL8DsnXnx6xAAll Articles