skip to Main Content

Jquery – validate textbox based on checkbox

I want to validate a value only when a checkbox is checked. I am able to get the validation running but if the checkbox is unchecked, the validation still runs. Here is my code: $("#personal_deliver_same").on("click", function(){ var check = $("#personal_deliver_same").is(':checked');…

VIEW QUESTION

QueryPath outerHTML (jQuery for php)

I am using gravitypdf/querypath (from composer) I am trying to achieve this function from jQuery/JS in PHP QueryPath: jQuery("html")[0].outerHTML; I have tried the following: echo (string) qp($html, $filter)->parents(":root"); // can't convert document to string echo qp($html, $filter)->parents(":root")->html(); // returns inner…

VIEW QUESTION
Back To Top
Search