Classname may refer to classes in scripting languages and markup languages. Typically, a class denotes a certain part of the application which can be manipulated.
Questions tagged [classname]
620 questions
3
votes
2 answers
How to locate an element with multiple classnames using Selenium and Python
I'm trying to click on the following element with the class name equals "clean right":
How could I locate it by using driver.find_element_by_class_name()

Tajs
- 521
- 7
- 18
3
votes
3 answers
Pre-registering an ATL window class
I am using a combination of the ATL and WTL for a project and have derived my own class from CWindowImpl, which looks something like this:
class CMyControl : public CWindowImpl
{
public:
DECLARE_WND_CLASS(_T("MyClassName"))
...
…

Rob
- 76,700
- 56
- 158
- 197
3
votes
3 answers
React - Using ternary to apply CSS class in functional component
I'm relatively new to React and working on a John Conway - Game of Life app. I have built a Gameboard.js functional component for the board itself (which is a child of App.js) and a Square.js functional component which represents an individual…

Nick Kinlen
- 1,356
- 4
- 30
- 58
3
votes
2 answers
Is it possible to define an alias for a class in .NET?
The name of one of my classes was changed and I can't change it back. I have to mantain backwards compatibility and I don't want to write an wrapper with the old name.
Is there any easy way to give a class 2 names or to give it an alias?
Lifted from…

Jader Dias
- 88,211
- 155
- 421
- 625
3
votes
1 answer
Div / CSS position not updating after javascript manipulation
I want to move a div that is normally floating on the right side to an absolute position (determined by js) and then back to its initial position.
The first part already works and relies on setting the "style. " tags for the object.. something…

C.J. Parker
- 33
- 1
- 4
3
votes
3 answers
Count specific elements and add count to class name using jquery
How can I count the number of elements with a specific class and add the count to each one as a new class name with jquery?
$('.full-screen').each(function(i) {
$(this).addClass('.full-screen-', i);
});
I want to create:

Rob
- 6,304
- 24
- 83
- 189
3
votes
2 answers
How to give a Class name to an initial Tab Bar Controller?
I am developing a swift application, which uses a Walkthrough screen as initial view controller when the app is launched for its first time.
I have a skip button there, which should dismiss it when the user clicks on it. The Problem occurs with the…

Dakata
- 1,227
- 2
- 14
- 33
3
votes
3 answers
How to hide table rows based on child class name using jquery?
I have a lot of rows and I want to hide some tr that doesn't have a specific class.
Example:
2

apeiron
- 71
- 1
- 7
3
votes
1 answer
How to get class name from bound method using inspect?
class MyClass:
def my_method(self):
print(get_context())
MyClass().my_method()
I need get next line:
MyClass::my_method
sys._getframe(2).f_code.co_name gives me only "my_method". How to get also class name?

Artem Selivanov
- 1,867
- 1
- 27
- 45
3
votes
1 answer
Use classname to generate style properties
I am working on a little table which has several different paddings, I have to put them into a div to make it work.
But I am currently having alot of classes containing only padding: Xpx; where X corresponds to classname padding-20. I want to have…

Martin Beentjes
- 132
- 2
- 11
3
votes
1 answer
Javascript class Vs className
I am currently learning javascript and I found some difficulties in understanding the difference between class and className.
I am wondering if there are any difference between class and className. As when I am learning Javascript, I found that I…

CHANist
- 1,302
- 11
- 36
3
votes
4 answers
Creating object based on string parsed in
Suppose I have a class Image. At some point in parsing, "Image" is read in at the appropriate time, meaning I want to create an object of class Image.
What I'm considering is mapping these strings to a constructor call to the appropriate class, but…

person
- 31
- 1
- 3
3
votes
1 answer
Get class by its name in Delphi
I would like to write a function that accepts a classname and results the corresponding TClass. I've noticed that, System.Classes.GetClass function doesn't works if the classname isn't registered.
Example:
if(GetClass('TButton') = nil)
then…

Hwau
- 850
- 3
- 12
- 23
3
votes
4 answers
Javascript:: Trigger firstChild element by class
This code would speak for it self and explain what I'm trying to achieve...