« first day (38 days earlier)
← previous day
next day →
last day (1232 days later) »
cornbread ninja
16:22
They default to unchecked okay?
JSBձոգչ
@KitFox do you mean you can't get them to validate when they change, or you can't keep them checked?
cornbread ninja
onCheckboxChanged()
KitFox
They validate when I try to submit the form, but they don't update if I check the box.
@cornbreadninja I'm using jQuery for this one.
cornbread ninja
are they init as checkable?
oh
KitFox
So I can't submit without having the boxes checked, but when I check the box, it doesn't remove the error formatting.
So the validation is right.
cornbread ninja
16:24
OIC
KitFox
I'm just doing the other part wrong.
I've tried blur, click, and change.
JSBձոգչ
change should be the right one
KitFox
It's in a span element. Anything special about that?
JSBձոգչ
are you attaching to the change on the span or on the box?
just to make sure
KitFox
It's on the span. It finds the box inside the span element.
At least, I think that's what it is doing.
JSBձոգչ
16:26
the change event on the surrounding
<span>
will never fire
KitFox
OK, well, that would be a problem then.
JSBձոգչ
you need to attach to the change event on the checkbox itself
KitFox
I'm looking...
JSBձոգչ
(same goes for all control types. change events do not bubble up through the dom -- they're only fired on the element that originated them)
KitFox
OK, I see. I have an asp:Checkbox, but I don't need that to be an asp control anymore.
It renders as an input inside a span.
I can just change that to an input, right?
type="checkbox"
?
JSBձոգչ
16:28
correct
KitFox
OK, let me see if I hooked that up right.
scowls
Now I'm not getting any error formatting.
It's not fair. This is the last thing I have to fix before we do the next round of testing.
OK, so let's say I wanted to apply css to a particular element.
.error input
{
style here;
}
Is that right?
←
35 messages moved from
English Language & Usage
Noah
16:44
Hello
At least you have got me...
KitFox
Do you know CSS?
Noah
A little bit
What seems to be the problem?
KitFox
So do you know if am I doing my cascade wrong, or what?
I have an error class. I want it to apply additional style if there is an input element.
9 mins ago
, by
KitFox
.error input
{
style here;
}
But that's not working, so I've got something mixed up.
Noah
I think the css is fine...
the .error indicates that it's a class and will need to be added manually
How do you use it in your HTML?
KitFox
17:15
@Mr.Shiny Thanks. I can't figure why this isn't applying my style.
Have I got it wrong?
Mr. Shiny and New 安宇
My first suggestion is to leave your html/css alone, since that seemed to be working, and instead post your code where you attach your onchange handler
KitFox
Um, no, switching to the html checkbox screwed up the formatting.
Mr. Shiny and New 安宇
yeah, hence why I'd leave it as it was
KitFox
Well, I should say, it can't apply the border, because there isn't one.
Mr. Shiny and New 安宇
@kit what browser are you using? If it's chrome, FF or ie9 you can inspect the dom before and after your change handler fires.
KitFox
17:26
Hey look! You're a room owner. Is that new?
Mr. Shiny and New 安宇
I created this room for you
hence the lolcat title
KitFox
But...I thought your italics was new. Maybe I just lack observation skills.
Mr. Shiny and New 安宇
Hm, I never noticed those. Guess I don't spend much time here.
« first day (38 days earlier)
← previous day
next day →
last day (1232 days later) »
all rooms
Transcript for
Sep
1
Sep '12
4
Sep
16
I can haz jQuery?
Programming chat
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile