Questions tagged as 'javascript'

1
answer

is there any function in javascript, php or xml to hide or block buttons from the title bar of nagedores

I am making a page to validate an item but I would like this page to only close if the scanned item is right until it works, but can not find any code to hide or block the buttons in the title bar of the browser windows because I would like the...
asked by 14.06.2018 / 21:19
1
answer

How to change the color of a div via javascript with one condition

I'm trying to change the color of a div if the following condition is true, if( @ViewBag == "reservado" ) , but I can not, could someone tell me what the code would look like with that condition described above? I'm programming in...
asked by 05.10.2018 / 18:34
2
answers

how to get a parent element from a child with id?

I have the following code: <div></div> <div> <div class='minhaClasse'> <div id='text'>hhaushdus</div> <input name='profile_id' /> <div> </div> I need to get this div :...
asked by 11.10.2018 / 22:37
3
answers

Separate text with Javascript [closed]

I have a string and need to separate the name from the street, neighborhood, city and state. string: Rua tal Muniz, 124 - ramones, Sapucaia - SP How can I do it using JavaScript? (Can be a solution with or without the use of the jQuery...
asked by 05.10.2018 / 22:39
2
answers

Adjusting text color on different themes

I work on maintaining a system that could only be displayed with the white background, and recently we adopted the possibility of the user choosing the dark background. Some text fields are saved with formatting in the database, so if the col...
asked by 04.10.2018 / 22:57
1
answer

Empty input after submitting form

Hello, I'm developing a login system, but I'd like to improve something. When I register a user, and type their name, address, etc., and make the request of the form, it returns all the empty inputs. Like the GIF below ... Notice in the ab...
asked by 10.10.2018 / 00:11
1
answer

jQuery validation plugin + tabs

I created a simple system of tabs with hide() and show() . Within each of these tabs (listed dynamically), there will be several checkboxes (also listed dynamically). The user will not be forced to select any option, but each tab...
asked by 16.02.2014 / 07:19
3
answers

How to mount a dynamic checkbox

I have one: <select name="snh_predio" id="snh_predio"></select> It loads automatically. When this is changed: $("#snh_predio").change(function() { }); I want you to print to a table a list of checkbox for selection:...
asked by 11.02.2014 / 14:48
1
answer

Angularjs - add class to a link based on url with binding

I'm trying to add an 'active' class to my link as follows: <a href="#/requests/{{request.id}}/processes" active>Processes</a> That produces output (chrome console) <a href="#/requests/7cgSiSdaIR/processes" active="">Proc...
asked by 15.02.2014 / 23:13
2
answers

Do not let browser save the password

I need to make the browser not save the user's password, I tried autocomplete="off", autocomplete="new-password", I already put it in the form of the page autocomplete="off", however the browser asks to save the password, how can I do not to sav...
asked by 14.05.2018 / 20:04