PHP Script & Validation: Modal: I don’t know where the problem is, I want the modal to remain open even if the problem or form has been submitted successfully. Now, with this code, if there is a problem with the submit form, the modal shuts down and if we open it again, the user can see error messages. Where am
Tag: jquery
Text converter with javascript split() [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 months ago. Improve this question I have bulk data in written text like this: How to make a tool with javascript by inserting bulk data
jQuery checking if Ajax request response equals to specific value does nothing
I’m using jQuery and Ajax to send my form data over to a PHP script and that all works well. But when I’m trying to check the response value of the Ajax request to determine which SweetAlert text I need to show the user things start not functioning. When checking if the response is equal to “success” a SweetAlert modal
How to load into HTML table just first 5 items from json file with JavaScript and JQuery?
I want to display first e.g. 5 items from json file using JavaScript/JQuery. I have the following .json file named draws.json which is like this: This is just a small part of it. I want to display only first 5 items from it. One single item would be for example: I want to load into my HTML table just date,
How to reconcile ‘this’ referencing DOM element and ‘this’ referencing class?
I’m having an issue understanding how I might go about using the this keyword to refer to a DOM element that is has been clicked, but also using that inside a class where this usually refers to the instance of that class. Here’s a snippet of the relevant code: The issue I’m having is that it doesn’t recognize columnController() as
Is possible to change the Javascript in the clients browser?
on a webform I’m using JQuery Validator to check my form data, however I don’t add any validation on the server side. I would like to know if is possible for a user to alter the code and remove my validations from their browser. If that is possible, how could I prevent it? Answer The code on the browser can
Toggle Class With Font Awesome Not Working
I have multiple buttons, when a like button is clicked I would like the font awesome icon to switch as well, however, the way I have it set up the font awesome icon just disappears, but I can see the class change. Not sure where to go from here. Answer If you want to change icon/style just add other class
changing input value of one field when another is typed not working for multiple fields
i have a website where i have a form, the form has 3 fields which can be addedd multiple times on click, my code is like below: i want the total field to show the value from its respective price field, however here only first row does that, can anyone please tell me how to fix this, thanks in advance
Toggle div only when button clicked
jQuery newbie here, I’m hoping someone can help. I have a function when a div with the class .ventures-minorities is clicked, it changes height onclick to show / hide .logos-wrapper – and the button with the class .expander toggles text accordingly – “Learn more” to “Close” – when clicked. The button and div is working and toggling as expected, but
Calculation not being performe properly in JavaScript
I have the following code that is converting characters entered in an input field into other characters (namely, entering an e or and E and converting it to a 3, likewise for a t or T into a 7). I am also calculating the percentage of the characters that were converted, but my calculation is not being performed properly and