Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by WorknHardr
at 2024-07-30 07:29:49
Point:300 Replies:6 POST_ID:829169USER_ID:12062
Topic:
JavaScript;;Hypertext Markup Language (HTML)
I'm trying to change part of the Label html like so. Problem: font is still bold
<label id="caption">New image name: (optional)</label>
$("#caption").html("Image saved as: " + "<br/> <style="font-weight: normal">" + data + "</style>");
<label id="caption">New image name: (optional)</label>
$("#caption").html("Image saved as: " + "<br/> <style="font-weight: normal">" + data + "</style>");
Author: WorknHardr replied at 2024-07-30 10:47:26
Drop it!
Expert: Gary replied at 2024-07-30 09:30:01
Do you understand what a question is?
Author: WorknHardr replied at 2024-07-30 09:26:10
duncanb7: Thanks, I need only certain text changed, not the entire text
Gary: You shouldn't post a criticism without a solution!
Randy Poole: Excellent! Just what I needed, thx
Gary: You shouldn't post a criticism without a solution!
Randy Poole: Excellent! Just what I needed, thx
Accepted Solution
Expert: Randy Poole replied at 2024-07-30 07:38:12
300 points EXCELLENT
$("#caption").html("Image saved as:" + "<br/> <span style='font-weight: normal'>" + data + "</span>"); 1:
Expert: Gary replied at 2024-07-30 07:36:37
What is the point of the style tag? That won't do anything
$("#caption").html("Image saved as:<br/>" + data);
$("#caption").html("Image saved as:<br/>" + data);
Expert: duncanb7 replied at 2024-07-30 07:35:54
Is it what your want, pls try this
Duncan
Duncan
<label id="caption">New image name: (optional)</label>$("#caption").css("font-weight","normal"); 1:2: