Posts

Showing posts with the label frontend

How can I select ID and get a value of it in input data in this row?

Image
Clash Royale CLAN TAG #URR8PPP How can I select ID and get a value of it in input data in this row? here is what I want to do. When I click the modify button, I wish div that contains role of 'ucomment' changes into in-line input form with its original value typed. But I can't even start with selecting the div. I thought the code here would work and could select what I aimed, but it didn't. $(this).closest("div[role='ucomment']") How can I select the div here? <ul id="comments" class="list-group"> <script id="commentTemplate" type="text/x-handlebars-template"> {{#each list}} <li class="list-group-item d-flex justify-content-between align-items-center"> <div class="row w-100"> <div class="col-2" name="uid">{{uid}}</div> <div class="col-8" role="ucomment" name="ucomment...

Container sizing in Bulma.io

Image
Clash Royale CLAN TAG #URR8PPP Container sizing in Bulma.io I have started to learn Bulma. I want to minimize container's (grey area in the picture) size in x-axis so I can embed elements into.Couldn't find any related content in documents. Here is my source code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" it> <title>Title</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.css"> </head> <body> <section class="hero is-medium"> <div class="hero-body has-background-danger"> <nav class="navbar has-background-primary"> <div class="container has-background-grey-light is-fluid "> </div> </nav> </div> </section> </body> </html> This is the sample view of this code: ...