I am new to dev and am working on a little project of creating a worshipper counter app for my local mosque. When the page loads, I want to show only the h1 and the drop down menu. Once an option selected, I want the counter app to display. I have written the function that will toggle the display using
Tag: html
How to calculate percentage in this JQuery
I have a problem in jQuery in html. Just need some changes in calculation, below are my codes All result will be calculated in one field as I did Existing: total = expenses – socso – kwsp The result i need is: total = expenses – socso – (kwsp / 100 * expenses) Thank you Answer As you c…
Slick slider group navigation items with slides using data attributes
I am using Slick Slider JS to build out a history timeline. Each date range navigation item is connected to multiple slides using a data-group attribute. I am needing to adapt my code to transition the timeline__nav ul left or right using the previous and next buttons when the first slide with a matching data…
jQuery number format for HTML input number with dynamic decimals
I’ve seen a lot of similar threads or library but I haven’t found one I need. I have preexisting code with many input[type=number] in the forms. I need to format the number value to local format when form is viewed at first load or when cursor/pointer is out of focus (onblur), and unformat the num…
Set uploaded photo as website background image [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I wrote a very simple image upload script, after uploading the image I thought of making the …
How can I get data-id from multiple elements with single onclick?
as the title says I have multiple buttons which they have data-id. I want to open fancybox modal by getting the clicked buttons data-id. Each element on click will open their own modal. I can’t use class selector because this function is attached to somewhere else, and I know that $(this) here doesnR…
how to structure html to take advantage of media queries [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago. Improve this question I’m trying to design a registration page that will work on both …
Increment array up to max items
I’ve written this code. It rotates two divs like a card flip using css transform every 1000ms and displays new text in the div, which is drawn from an array. It runs infinitely. But once the array reaches its end I get an ‘undefined’ value because the i++ is incrementing on the final array i…
How to change an svg image after onClick()?
I have a div tab that contains some text and an svg icon like so Once I click that tab then it expands like so Once expanded I want the svg icon to change to something else. So far my code isn’t throwing me any errors but also isn’t working as expected either. I currently have a function that shou…
Login takes me to the same login form and does not login when entered the correct username and password
I made a login floating form. Whenever I try to login using the correct username and password it takes me to the login form but this time in a simple design and to another page. When I try to login from there nothing happens. Can anyone help me with this? //logintest.php //login.inc.php //functions.inc.php In…