Remove required attribute from text field with jquery
$('#enterpassword').removeAttr('required');
$("#enternumber").removeAttr('disabled');
$("#enternumber").removeAttr('disabled');
We provide knowledgeable blogs related to php, jQuery, html, css, wordpress, woocommerce, cordova app with examples in 2021.
<?php
/* Template Name: myfirstpage */
?>
<?php get_header(); ?>
<div id=
"primary"
class
=
"content-area"
>
<main id=
"main"
class
=
"site-main"
role=
"main"
>
<?php
// Start the loop.
while
( have_posts() ) : the_post();
// Include the page content template.
get_template_part(
'template-parts/content'
,
'page'
);
// If comments are open or we have at least one comment, load up the comment template.
if
( comments_open() || get_comments_number() ) {
comments_template();
}
// End of the loop.
endwhile
;
?>
</main><!-- .site-main -->
<?php get_sidebar(
'content-bottom'
); ?>
</div><!-- .content-area -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
add days in a date in php
<?php
$Date = "2010-09-17";
echo date('Y-m-d', strtotime($Date. ' + 1 days'));
echo date('Y-m-d', strtotime($Date. ' + 2 days'));
?>
count number of days in between two dates in php
<?php $date1 = date_create("2017-04-15");$date2 = date_create("2017-05-18"); //difference between two dates$diff = date_diff($date1,$date2); //count daysecho 'Days Count - '.$diff->format("%a");?>
Add re-captcha v3 on all Elementor forms using coding add_action('wp_footer',function(){ ?> <script src="https://www...