Questions tagged as 'javascript'

3
answers

How to manipulate part of the href attribute of a link using JavaScript in WordPress?

Is it possible to manipulate only part of the URL using DOM or something like this? I would like to remove the '#' in the middle of the url, in the href attribute. The code will be added in a Wordpress theme and should be enabled when load...
asked by 31.01.2017 / 02:37
2
answers

how to change the subtitle of the page with the selection of a select

Galera is very simple, I have a form that can serve multiple services. I need the subtitle of the page to change depending on the choice (in a select) of the service. I'm using the following a bit of code <header class="jumbotron">...
asked by 03.02.2017 / 18:27
1
answer

Render html from the database using angular 1.6.1

I have the following page using angular , jquery and bootstrap : var app = angular.module('tblModule', []); app.controller('tblController', function($scope) { $scope.testes = [ { "teste": 1, "oi":...
asked by 04.02.2017 / 09:38
1
answer

Datatable with JSON

I'm doing a datatable with ajax return. $.getJSON("sql.php?operacao=usuario_lista&excluidos=false", function (data) { alert(data.users); $('#tabusuarios').DataTable({ "aaData": data.users, "aoColumns": [...
asked by 25.01.2017 / 19:49
2
answers

Toggle - get result true or false

Follow the code: Model: public bool teste{ get; set; } View: <div class="checkbox"> @Html.CheckBoxFor(model => model.teste) </div> HTML result: <div class="checkbox"> <div class="lcs_wrap">...
asked by 05.01.2017 / 07:40
1
answer

Insert indented text in TextArea with CodeMirror

I'm doing a HTML editor in the browser, where the user can write his script to the database, I recorded all the lines of user code in a single string and recorded it in the DB, but how do I bring it back as user created? Currently it l...
asked by 09.01.2017 / 22:47
1
answer

Get some elements of a JSON variable

I have a JavaScript variable that holds a JSON, similar to this: { "estado": [ { "nome": "Foo LTDA", "endereco": "Endereço de SP", "cep": "12345-000", "telefone": "(1...
asked by 10.01.2017 / 18:27
1
answer

Hide a question while selecting another in jQuery

Good morning, I'm finishing a website here for the company where I work, and only one detail is missing to complete it, however as my knowledge in javascript is somewhat limited, I would like a little help ... My question is the following , I fo...
asked by 06.01.2017 / 11:12
1
answer

How to do a "Read More" button in JavaScript

Hello. Home I have this text:    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent   aliquam vitae elit in lobortis. Morbi tincidunt enim elit, condimentum   accumsan pain lacinia elementum. Proin magna nunc, interdum in   pos...
asked by 17.05.2017 / 22:13
1
answer

Node JS, Socket.IO Rooms and namespaces

I'm developing a map-based android app that will create chat rooms in some pre-determined places and places where users need them. I did some research with mechanisms that I could use in my application and came across the concept of namespac...
asked by 12.07.2017 / 15:47