need to replace the li tags with different customized tag according to the bullet level, For the li level1 keep it as is, for level2 change li to lii, for level3 change li to liii For example for the input below (I have only 2 bullet levels in the below code just as example) desired output as you can see
Tag: html
How to loop through div per div
Horrible title aside, I currently have a dynamic form that has tasks, and per tasks, statuses. The amount of tasks and status can vary. What I’m trying to do is submit the task name, status name, and colors tied to that status. I’m submitting the form via js and the only different thing is creating an array from the colors.
Sending an otp to the input mobile number and verifying it, in my html page
I want my html page to send an OTP to the mobile number given in the input text, when I press Send OTP button. And upon giving the OTP as input I want my webpage to verify whether it’s the same OTP that was sent to the mobile. How do I achieve this? This is my html code: Answer There’s
How to show parent and child items form array in php
I am new at php. Maybe a simple question.. I want to make parent->child view. I have an array like this: With key id and key parent. How to draw in cycle correct structure? Maybe at first I need to create function for creating the tree ? Answer Cycle through the source array $arr to detect records that have a
Sanitizing whitespace in generated URL parameters
I’m having an issue with a PHP page that generates an HTML document. On the page, there is a form that has a <select> box, and each <option> inside has a value with the URL parameters to use when changing the window location when the form is “submitted”. The issue is that I noticed is that one of the parameters
Sending and email with the auto Increment number attached to the email using PDO/MySQL
Hello my favorite people! I am trying to send an email after submitting a form, with the AUTO INCREMENT number attached to the email because the AUTO INCREMENT number is the clients Job Card Reference Number. So far i have successfully created the insert script which inserts the data into the database perfectly, and also sends the email too. But
How to split text string in PHP (Song – Artist)
I have this bit of PHP ?> I want it to show on my page as: Song Artist How would I make the song appear in bold and what would I put in place of the ” – ” to make a line break instead? Answer Assuming you want to generate some HTML that can be picked up by a
the session created in a page doesnt shares with other
when i create a session in php it still only in one page but doesnt get shared with others the login page code: my login code: and the logoff one: i have noticed that the browser saves a “phpsessid” cookie but it doesnt seems to share with other pages. i tried to print the session id with echo session_id(); but
How to select all js files which is located in a folder or under a subfolder
I want to import my script files dynamicly. I’ve coded a simple think but it is not working how I expected. I want to select all js files which is located in a folder and its subfolders. In this code, example.js is not loaded. my folder Answer You can adjust your pattern this way. Note that the GLOB_BRACE flag allows
Dropdown with Search Box using Bootstrap Selectpicker not working
I’m trying to search for supplier from the database using the bootstrap-select picker on the dropdown. What I want is while typing in a letter, the dropdown shows the relevant name from the database. …