Questions tagged as 'html'

1
answer

Hide part of a text with javascript

I have a table that is populated with data coming from a bank. One of the columns contains text that is sometimes long (more than 1000 characters). I want to limit the display of this text in the table to 300 characters and add a "read more" but...
asked by 15.06.2016 / 16:55
1
answer

With Jquery take all the elements

Hello, I wanted with Jquery to get all product_payment from a store and change. Changing: At sight R $ 137.66 with a discount or 12x with interest of R $ 13.69. For: At the sight R $ 137,66 with a discount or 12x from R $ 13,69. It has t...
asked by 14.09.2015 / 15:07
2
answers

File Download via Ajax

In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () { $("#baixarArquivo").off("click").on("click", function () {...
asked by 01.06.2016 / 14:44
2
answers

Catching CSS classes interspersed using jQuery

I need to know how to get interspersed CSS classes. Well I'm going to do a loop and I need to get the classes in a certain number. The code is as follows: <div class="box"></div> <div class="box"></div> <div class...
asked by 05.06.2016 / 22:46
2
answers

Is it possible to use min, max and step in CSS?

I have an input of type number with min and max in HTML. is it possible to use this min , max and step in CSS? <input class=input_number id=delai type=number min=1 max=10 step=2 name=delai required /...
asked by 10.07.2015 / 15:10
1
answer

What is the best practice for restricting access to the site administration system?

I wanted to create an administration system for the site, I made it so that users have a level field associated with it and if it is a given value they can access the admin control, otherwise if they try they are directed to the index, I do not...
asked by 14.05.2015 / 23:43
1
answer

Execute function only the first time you open the page

I'm developing an app using Phonegap , it uses the front end to create apps, so I'd like to do the following: run a specific function (such as an alert) the first time the application is opened? And it will no longer be shown unless the app...
asked by 05.01.2016 / 14:16
2
answers

Select chained using only HTML and jQuery

Hello, Community! I have two selects in HTML one with the regions of Brazil and another with states. How do I chain them without using a template (PHP, Java, C # etc), only with HTML (the selects) and jQuery? //select regiao/estado en...
asked by 01.01.2016 / 23:51
1
answer

How to remove the edge of the image?

I have this image: 1) 2) that is being used with icon for <input> : ' <input type="button" class=" button_add" />' With CSS I've added it to a li : input.button_add { float: right; height: 40px;...
asked by 28.05.2015 / 12:33
2
answers

Error while uploading photo

I tried to apply the instructions to upload photos to the bank with this article . I have just adapted to the MySQLi extension. The connection code below: $conecta = new MySQLi = ("localhost", "root", "", "forum-ti-1"); However, the fol...
asked by 27.05.2015 / 21:12