Questions tagged [custom-selectors]
28 questions
264
votes
26 answers
Android - styling seek bar
I wanted to style a seek bar which looks like the one in the image below.
By using default seekbar I will get something like this:
So what I need is to only change the color. I need no extra styles. Is there any straight forward approach to do…

suresh cheemalamudi
- 6,190
- 11
- 49
- 67
21
votes
3 answers
What useful custom jQuery selectors have you written?
For me, one of the best, yet under-utilised feature of jQuery is the custom selector. I have a fairly trivial example of this, to pick out all text boxes that are empty:
$(document).ready(function() {
$.extend($.expr[':'], {
…

James Wiseman
- 29,946
- 17
- 95
- 158
7
votes
1 answer
Custom thumb for a seekbar in Android
I want to create a custom thumb for seekbar that should look like this:
One solution could be this one, where png pictures are used to draw the thumb.
I believe that it should be possible to use xml only, since it is very similar to this…

Andrey Prokhorov
- 890
- 2
- 13
- 25
5
votes
2 answers
jQuery custom selector, "undefined"
i am trying to make a jQuery ui calendar make ajax calls when a date is clicked on,
but i ran into a problem a few days ago.
I found a snippet of code that supposedly does this , but as i found out it uses jQuery custom selectors. The code gave me…

Jordashiro
- 803
- 4
- 16
- 27
4
votes
3 answers
change value of tom select after rendering it
I'm working on an update function that uses tom-select (https://tom-select.js.org/).
The process goes as follows:
1- the user clicks on the edit button
2- a bootstrap modal will open and the data of the selected row will show so he can update…

Mohammad Azzam
- 83
- 2
- 10
4
votes
1 answer
What is the Relative Performance of Pseudo-Class and Custom Selectors?
It's my understanding that, in terms of selector speed, that #ID selectors are fastest, followed by element selectors, and then .class selectors.
I have always assumed that pseudo-class selectors and custom selectors (those in the form ':selector')…

James Wiseman
- 29,946
- 17
- 95
- 158
3
votes
1 answer
Passing arguments to TestCafe Selector in page model
I'm wanting to pass a string into an object in a page model for use by a .withText selection. I can do this with a function on that page and it works, but I have to call it differently than objects defined on the page.
I've tried playing with the…

Heath H
- 33
- 3
1
vote
0 answers
Custom Select option dropdown with close button
I am new in the JavaScript i tried it lots of time but unable to do it. Can someone please help me out with below(image) for custom select box. And "+ New Category" steady bottom as shown in the image. Also want to use it multiple times on…

Hemant Deshmukh
- 21
- 3
1
vote
1 answer
Acumatica Customize Owner Selector
Is it possible to hardcode and filter by a specific department in the "Owner" selector in Acumatica?
DAC: AR.Arinvoice
OwnerID
[PXDBGuid()]
[PXDefault(typeof(Customer.ownerID), PersistingCheck =…

jckta
- 33
- 2
1
vote
3 answers
CSS :nth Selectors Header
I need some help with selecting letters/words from headers (h1,h2,..).
This is a CSS Zen Garden, which means I can only use CSS and can't edit HTML. I need to it with css Selectors. I tried using different ::nth selectors but I haven't found a…

Distortion
- 309
- 2
- 3
- 12
1
vote
1 answer
Scrape complete HTML tag wise
Suppose I have an HTML page as
..
Some text here
Some other text here
Title 1
Another text here
Some random text here
Title 2
Some text here
Some other text here
..
Is…

epynic
- 1,124
- 2
- 14
- 26
0
votes
0 answers
Toggle Language dropdown - error in handling language change
I wanted to see if anyone can help me out 1) figuring out why my component is not handling the language chage state 2) how can I apply this change into actually changing the language for a whole app. What is the best approach for production?
I spent…

Tomás
- 13
- 3
0
votes
0 answers
How to combine chained menu and custom-select
I have added a form at the bottom of my webpage using the custom-select:
https://www.w3schools.com/howto/howto_custom_select.asp
But in the sidebar I use the chained select menu:
http://www.dynamicdrive.com/dynamicindex1/chainedmenu/index.htm
In the…

chechu
- 209
- 1
- 2
- 8
0
votes
1 answer
jquery: custom selector not working
I am trying to create a custom jquery selector to return the bool of css("visibility") == "inherit" but it doesn't seem to be working. Below is the code...
$.expr[":"].crazyvisible = function(a) {
var elem = $(a);
return…

bflemi3
- 6,698
- 20
- 88
- 155
0
votes
1 answer
Can the id and a class have the same name of an html element?
The CSS allows that I can have a class called “.header”, as well as “.main”, “.footer”, “.aside” and so on... the same for IDs. In theory, I can have 3 selectors with almost the “same” name, like “article”, “.article” and “#article”. And I can do…

limakid
- 71
- 11