Questions tagged as 'javascript'

2
answers

Extract value from a div tag

I'm trying to get a value like this var pgr = $("#myProgress").val(); var mbar = $("#myBar").val(); Only that it returns empty to me "", if I do with the var prg = document.getElementById("myProgress"); I get something like the followi...
asked by 08.05.2018 / 20:07
1
answer

How to make a Loading when calling a page with ajax?

Well it happens that I want to add a gif Loading and run every time I click on the link, after a certain time I load the page, the gif should be centered and add a kind of dark background to the whole body , I'm using codeigniter, please help me...
asked by 08.05.2018 / 17:02
2
answers

Palindrome in sentences

Good, I have a small exercise done in javascript in which determines if a word entered by keyboard is palidrome or not. With words if it works correctly, but when I enter a sentence, it always jumps me with the fact that it is not palindrome....
asked by 08.01.2018 / 15:26
1
answer

Get data from a table using JQuery or Javascript

I am developing a system in which I need to obtain a data (ID) of a row whose column is with the attribute hidden . Table code <table id="tbl_Datos"> <thead> <tr> <th hidden>ID</th&...
asked by 08.01.2018 / 19:17
1
answer

Else if statement, why it does not work (Number (! numberUser)

Simple question, because in this section = > Number (! username) DO NOT invalidate 0 and tell me: 'Please enter a valid numeric value' I know that if I pass the 0 to the prompt it returns a string but for that I have done Number (!...
asked by 13.12.2017 / 21:03
1
answer

How to give good appearance to the form on my website?

I am trying to create a contact form which shares the screen with my personal data: name, address, etc. Osea my data on the left and the form on the right, leaving margin between them and left and right of both. Once they showed me (Alvaro Monto...
asked by 12.12.2017 / 00:08
2
answers

Access JSON response in AJAX

I try to access the values of the response I receive through AJAX but I am not capable. The JSON that receives the function in success I think is fine, but when I access its elements these have value undefined . If I throw in the...
asked by 11.12.2017 / 21:17
1
answer

How can I destroy a summernote?

I have a modal where I launch a Summernote, however I want that when leaving the modal the Summernote is destroyed since the following can happen: And if I remove the content with $ ("# descriptionA"). code (""); it does not remove th...
asked by 16.11.2017 / 00:42
2
answers

dial and uncheck option dynamically

I am working with the days of the week I have 7 checkbox (workday) from Monday to Sunday and 7 in the same way from Monday to Sunday but this I occupy to know the rest days If, for example, the user's workday, Monday through Friday, the workd...
asked by 30.11.2017 / 22:20
1
answer

Shutdown and restart operating system with javascript

How could I send restart and also turn off the pc with javascript in the frontend or with NodeJS in the backend ?, I use Linux as SO . I was researching and I read something about hyperlinking a file .lnk that would per...
asked by 30.11.2017 / 14:23