Questions tagged as 'atributos'

1
answer

PHP: Interface type attribute

I am doing a study of Project Patterns. My first pattern is Strategy, where I have an abstract class that has two attributes that should instantiate a class that implements a given interface. The interfaces: interface FlyBehavior { publ...
asked by 07.09.2017 / 17:53
2
answers

Selecting Bootstrap Attributes

Well, I'm having trouble selecting an attribute of a certain element of bootstrap with jquery , for example: <ol class="carousel-indicators"> <li data-target="#carrossel-principal" data-slide-to="0" class="active">...
asked by 16.02.2017 / 11:44
1
answer

How do I save the values of a String in a Double variable?

I have a String with the value x inside it (String value="x") I need to pass this value to a Double Variable, how do I pass the x value of the String to the variable? So if I convert from String to Double the value of the Double variable i...
asked by 22.06.2016 / 20:12
1
answer

What are Boolean attributes? [duplicate]

I would like to know what these Boolean HTML attributes are.     
asked by 08.12.2018 / 11:10
2
answers

Display content of the "title" attribute next to the option element

I have an image thumbnail set in option of select . I would like the script to automatically insert the caption, for each of these images in select , based on the attribute in> title . The example of what I've...
asked by 19.05.2018 / 23:18
4
answers

How do I insert the value of a variable within an HTML attribute using pure Javascript

I'm trying to insert a value that I'm getting from the url inside the HTML attribute, as follows: I've done this function function urlId() { document.getElementsByTagName("BUTTON")[0].setAttribute("data-channel-external-id", "qs.id");...
asked by 05.02.2017 / 02:23
1
answer

How do I set acceptable single values for an Enum property in a Serializable class?

Given enum as an example: public enum IcmsCst { [XmlEnum("00")] Cst00, [XmlEnum("10")] Cst10, [XmlEnum("20")] Cst20, ... } Is there a way to annotate so that I could specify that a particular type of ICMS could only a...
asked by 18.07.2018 / 22:07
1
answer

Linux - Copy only attributes of files in a folder [closed]

From the beginning ... I had a problem with my partitioning and I needed to clear my hard drive. I'm running Linux Mint 19 on Live-CD (USB) so I can copy the contents of my / home folder (which was on another partition - / dev / sda6 - and mount...
asked by 10.07.2018 / 22:49
1
answer

How do I pass an array in HTML attributes and not show single quotes?

Following this post I've created the following html passing arrays as an input element attribute: ... <input type="text" name="setValues[cardExpiration]" id="card_expiry" class="input-small" value="1222"> <input type="text" name="se...
asked by 24.10.2017 / 14:56
1
answer

Check if there is a value in the enumeration by the attribute and return its value

Is it possible to produce simpler code for this function without changing enum ? /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] [System.SerializableAttribute()] public enum Velocidade { //...
asked by 02.10.2017 / 20:44