Questions tagged as 'javascript'

1
answer

Onchange function does not work

Good afternoon, I have a function that verifies if the typed email exists in the database, and if the email is valid. Here is the function: <script type = "text/javascript" > function validateEmail(emailField) { var reg = /^(...
asked by 12.12.2017 / 14:53
1
answer

Change Class according to ID

I have the following structure. <div id="cabecalho"> <span data-bind="attr: { id: solicitacao.numero}"></span> <div> where, request returns a number from 1 to 10 I would like to add a class according to the number....
asked by 28.02.2018 / 16:03
1
answer

carousel bootstrap 4 mobile only [closed]

Given the image below that represents the desktop mode, I would like to know how to make a carousel only in mobile mode. !---Team-----><divid="team" class="team"> <div class="container"> <div class="row">...
asked by 28.02.2018 / 03:17
1
answer

JavaScript SetInterval not working ... where did I go wrong? [duplicate]

As you can see in my code below, I needed to make my image link via JavaScript instead of using the simple HTML method (for specific reasons), however I need it to take a 3-second interval for the boot function, but I could not ... can you tel...
asked by 27.02.2018 / 17:40
1
answer

Convert value from a component select options em number

I have a select component and would like to convert the value to the Number format because when I save it I need a value 2 and not "2" The ideal would be to convert all tag <option>...
asked by 28.02.2018 / 20:10
1
answer

Mount a Strobe Light inside the JS canvas

I have a task to develop for college but I have some problems. First let me try to explain what to do: I need to simulate a strobe light based on some colors in an HTML selector. The user must choose the range (I have not done the range ye...
asked by 28.02.2018 / 21:56
1
answer

Dropdown on navbar

I need a force here for a problem that is killing me. I can not give action on dropdown on my navbar . I'm using Bootstrap 4.0 and jQuery 3.2.1. Here are my codes: <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js...
asked by 08.01.2018 / 15:46
1
answer

Load RTF content into HTML component

I'm using the SCEditor API to make a text editor available on the page, but I need to fill it out (with the value) with the content of a string in RTF. I did this, but it already made a mistake in the quotation marks ... var textar...
asked by 08.01.2018 / 14:31
2
answers

How to use 2 addresses in the condition of if (! strpos ($ _SERVER ['REQUEST_URI'], '/'))

What can I do to use two addresses at once in this condition? NOTE: I need this code not to load the HTML if one or the other address is accessed <?php if ( !strpos( $_SERVER['REQUEST_URI'] , '/') ){ ?> <a id="seloEbit" href="ht...
asked by 08.01.2018 / 14:20
1
answer

Ajax taking only the first id

Hello, I am updating a list with arrays and php, passing two presence parameters (ckeckbox) that returns true or false and id in hidden, but the id does not proceed in the loop, getting in the first id in the two values: array(2) { ["id"]=&g...
asked by 08.01.2018 / 13:18