Exemine your page source. If your using an APEX default theme, you will notice that the label is not infact a child of your item, but a child of the previous element of the parent of your item.
So to get the text you should do something like this:
To get the actual element:
Thanks for reply.
I use Theme 25 Responsive Blue, APEX 4.2.3, DB11g
i tried use as JQuery selector in condition like:
$('label[for="ITEM_NAME"]') -> in this case i can't use it because APEX makes the $(' ') instead.
I used my own item name of course.
I got the error in firebug console like: Error: Syntax error, unrecognized expression: #
here is a part of my template HTML code:
<div id="P3_FROM_ACC_NR_CONTAINER" class="fieldContainer vertical">
<label class="uOptional" for="P3_FROM_ACC_NR">Číslo účtu (z)</label>
<span class="uItemHelp" data-item-id="P3_FROM_ACC_NR"></span>
I use jQuery selectors for rows and items. But i never used it for labels before.
It's strange, that if i create the CSS rule like " #ITEM_NAME -> label " everything works fine.
You're right. But this can't be used in DA as jQuery Selector.
I resolved it used new class on page 0. And instead of Add Style i Used Add Class Event.
Now the label[for="ITEM_NAME"] works.
It must be something wrong with jQuery selectors (not simple one) when you use Add Style Event.
It is how it is works in my application
Thanks for suggestions.
Ok well I read your post again with this new information you posted. I now believe your original selector is also correct and the problem lies elsewhere. Remember you can test out selectors in the console.
But I think the problem might be elsewhere. Did you actually set "BOLD" with capitals? It might be stupid but some browsers could react differently, try setting that all lowercase.