Posts by avsinacio • 136 points
6 posts
-
0
votes2
answers1019
viewsA: Is it possible to change the name of a JSON position using Javascript or jQuery?
Hello, I don’t know if it would be the best way to do but you could turn into string, swap, then turn into JSON again. Something like this: var json = [{ id: 1, total: 50.00 }, { id: 2, total: 70.00…
-
2
votes4
answers190
viewsA: What is the default value of the "cursor" attribute?
Hello, the cursor pattern will depend on the context. To use the common arrow you could use cursor: default, but if you want the pattern in context, use cursor: auto.…
-
4
votes2
answers84
viewsA: How do I disable the resizable area of a textbox?
Hello, you can do this through css: <textarea style="resize:none" name="name"></textarea> Or something like: textarea { resize: none; }…
-
4
votes2
answers421
viewsA: Regular Expression to capture after last bar
You can use regular expression: /\/([^/]*)$/ Source: https://stackoverflow.com/questions/19776979/regex-get-all-characters-after-last-slash-in-url…
-
1
votes1
answer1189
viewsA: Windows equivalent.showModalDialog for Google Chrome
Hello, according to the Mozilla documentation this Feature is already obsolete and has been removed from Chrome and Firefox. You can now use the tag <dialog>. Excerpt from the documentation…
-
1
votes3
answers447
viewsA: Take JSON object dynamically
I’m not sure I understand your question very well: json[indexMateria].materia You are exactly searching for a 'materia' object in your JSON. If I understood your goal correctly, you should do…