Questions tagged as 'javascript'

2
answers

How to transform input value into string

How do I make the value of an input into a string, including whether the user types HTML tags, with JavaScript or jQuery. <div class="val-input" contenteditable="true"></div> $(function(){ var val = $(".val-input").text(); });...
asked by 23.05.2015 / 01:38
2
answers

Dynamic Link? And how to implement? [closed]

I do not know the name of this technique, I am a student, but sometimes I see in the lower left corner of the chrome the complete type link ... link Then suddenly it changes to: link I'm new to the web and forgive my ignorance if...
asked by 08.05.2015 / 06:14
3
answers

Mascara for weight

Searching the internet, I found a code that makes weight masks in the field. But this code works with ID criteria. I would like it to work with CLASS, so I can use it in other fields. function id(el){ return document.getElementById(...
asked by 14.05.2015 / 17:55
2
answers

Create a link that when clicked I get your text

I have a table that has the Material ID and the Name, the name is a link, I need to make it when I click the link it takes the ID and the name puts it in a text field in the form. The table is generated dynamically by a script $('#tbl').app...
asked by 21.05.2015 / 15:58
2
answers

Elements outerHTML return

I'm developing a library based on my needs. Let's say in the example below: lib('#menu a').html() Returns the outerHTML , as shown below: <a href="#home">Home</a> If the ('#menu a') tag has more than one " a "...
asked by 01.04.2015 / 13:49
1
answer

Set municipalities limits in GoogleMaps

I'm trying to create thematic maps using google maps api . Reading the documentation I realized that for coloring regions I need to set all the Lat Long coordinates of the perimeter I want. Someone who has ever had a similar problem: D...
asked by 18.03.2015 / 23:54
1
answer

Add properties to element [Node]

Is there a problem in adding custom properties directly to the [Node] element? For example: document.getElementById('minhaDiv').minhaPropriedade = 'teste'; I'm using Firefox and have had no problems setting up or getting ownership, but is i...
asked by 23.01.2015 / 17:48
2
answers

Appear div to close just after clicking iframe

It is possible to have a div with a iframe and only after the user clicks on one of the links within iframe , would appear a div to say fechar and when the user clicked there, it closed to div fechar a...
asked by 03.02.2015 / 19:35
1
answer

Reload page with MVC

I made a function in the model and the call in the controller. There, I move to jquery and the command to write to DB is successfully executed. It happens, that when I finish recording, the screen continues with the previous information, that is...
asked by 08.10.2014 / 14:15
2
answers

Count the number of characters changed in an input field

On a given page to change the registered data, in one of the fields I need to limit the amount of characters that can be changed. There are 2 inputs fields and one of them is hidden by storing the name in the current form. In% visible% is...
asked by 15.11.2015 / 17:20