Questions tagged as 'onclick'

1
answer

Use onclick and ontouchstart

I have this div: <div onclick="funcao('')"> And on Iphone (mainly the 6) the onclick does not run very well. I saw the ideal is to use the ontouchstart , but when I put both of the error, it thinks it was clicked twice. What to do...
asked by 10.06.2016 / 17:47
3
answers

Function in hyperlink

I'm running a function in the hyperlinks of my system, as shown in the code below: <md-menu-item ng-repeat="insumo in insumos"> <a href ng-click="verificar('mostrarInsumos', insumo.ins_cl_id, '1', $event)"> <md-butto...
asked by 15.02.2016 / 18:59
2
answers

How to make a ListView "Clickable"?

I have a simple phonebook system, where there is Activity s for: Registration; Editing the registry; Removing the registration; And one last to see all contacts within a ListView . All records come from a table in the d...
asked by 13.02.2015 / 19:44
2
answers

Why does a function invoked by onclick not influence commands external to it?

As can be seen in the code, the declared variables are global, and the routine should display the result on the console as soon as the "Submit" button was selected. <!DOCTYPE html> <html> <head> <meta charset="utf-8">...
asked by 16.03.2018 / 21:03
0
answers

PHP and javascript - Running function onclick properly [closed]

Hello, I'm a one-page developer of a client. Inside this page, I put a link in the header (header.php file) inside the DIV structure which looks like this: <div onclick="irParaMinhasReservas();" style="cursor: pointer;" id="btnMinhasReserva...
asked by 06.03.2015 / 13:25
3
answers

Execute php function with onclick

I want to know how to execute a php function with the onclick event on a a element, for example: <a href="">Teste onclick</a> And the function: function testeOnclick() { echo 'Bem vindo ao SOpt'; }     
asked by 28.05.2015 / 19:45
1
answer

without quotes enough to pass a javascript html string

I'm facing a difficulty, I have to create tags, which will have a function when clicking, the problem is that, I have to pass a string in the element in html ie when calling the function and pass as parameter, I need to use quotes, but ended the...
asked by 16.08.2018 / 14:36
1
answer

Create tight button effect

I have the following component in React: import React, { Component } from 'react'; class Counter extends Component { constructor(props) { super(props); this.state = { count: parseInt(this.props.value) }; this.inc = t...
asked by 07.02.2018 / 21:52
4
answers

How to create a clickable div? [closed]

I have a div on my site and want to make it clickable through Javascript. How do I do that? Thank you.     
asked by 13.03.2018 / 16:58
1
answer

Onclick with alternate calls

I would like to know if there is any way to implement an alternate call in the onclick function, so when I click it once it executes a function, and when I click again call another function ... An example would be using checkbox...
asked by 27.11.2016 / 19:00