Posts by wbp • 47 points
7 posts
-
0
votes0
answers37
viewsQ: How do I access the value of an object in the view with handlebars when that object was created within a controller?
I created a controller file that has an object with some items being one of them a function that returns files from a folder. When giving console.log an array is returned with the files from this…
-
1
votes2
answers40
viewsQ: How to use the same background for an "X" element with css and html?
I created an element in the form of an "X" where at each end I want to use the same background. The background will only appear in the areas in red. I’ve tried using background-clip but I couldn’t…
-
0
votes1
answer48
viewsA: Select select option according to url parameter
I solved my problem as follows(I don’t know if it’s the best but it worked): if (hash !== undefined) { $('.kit-list').each(function (i) { if ($('.kit-list:eq(' + i + ') #espec_0_opcao_0…
-
0
votes1
answer48
viewsQ: Select select option according to url parameter
i have the script below that takes a parameter from the URL(if it has), searches all selects of the page and selects the option with the same value(same value of the parameter). If you don’t have a…
-
0
votes2
answers143
viewsQ: Run function after object created by click
Below is what I managed to do: When I click on a button with the class .btn-comprar-na-pagina, it fires function below. $(function () { var itens = []; $(document).on("click",…
-
1
votes3
answers100
viewsQ: Change position HTML element with each (or other hint) on page load
I need to access div with id list and change the position of span. It’s like this: <div id="list"> <div class='item'> <span class="AB">conteudo 1</span> <span…
-
1
votes2
answers1136
viewsQ: Perform search inside javascript object and return value
i need to do a search inside a javascript object that brings me the sku according to size and color, vcs can give me a light? Example: I need to insert in a variable the product sku that has the…