kjetilwaage
Forum Replies Created
-
I have the same problem with 3 columns
Resizable thumbnails is set to “Yes”https://vestbris.no/tjenester/gallery-demo/
- This reply was modified 1 year ago by kjetilwaage.
- This reply was modified 1 year ago by kjetilwaage.
Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedThanks!
Can you please send me a mail to: kjetil(a)vestbris.no ?
You can help me directly on my site if it’s possible?Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedNo, still not working…
A little help would have been fantastic! ??Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedSorry, can’t get it to work! ??
I think i might look for another solution?Your code that i added in Custom jQuery Code:
jQuery( function() {
var dateFormat = “dd.mm.yy”,
from = jQuery( “#haaheim_date_in” )
.datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
to.datepicker( “option”, “minDate”, getDate( this ) );
}),
to = jQuery( “#haaheim_date_out” ).datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
from.datepicker( “option”, “maxDate”, getDate( this ) );
});function getDate( element ) {
var date;
try {
date = jQuery.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );jQuery( function() {
var dateFormat = jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );
var dateFormat = jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );//getter
var firstDay = jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’, 0);
//getter
var firstDay = jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’, 0);My input fields in my form:
<div class=”con”>
<label for=”ankomstdato”>Ankomstdato</label><input id=”haaheim_date_in” type=”text” class=”dato” name=”arrive” /></div><div class=”con”>
<label for=”avreisedato”>Avreisedato</label><input id=”haaheim_date_out” type=”text” class=”dato” name=”depart” /></div>Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedok, sorry..
I’ve tried to remove the second id’s, still not working.
I don’t think i understand this? :pDo i use WP Datepicker and jQuery UI Widgets plugin together or just jQuery UI Widgets plugin alone?
Link to test form: https://www.haaheimgaard.no/test_date/
Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedok, thanks! ??
I tried but no luck ??Here is your code edited:
jQuery( function() {
var dateFormat = “dd.mm.yy”,
from = jQuery( “#haaheim_date_in” )
.datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
to.datepicker( “option”, “minDate”, getDate( this ) );
}),
to = jQuery( “#haaheim_date_out” ).datepicker({
defaultDate: “+1w”,
changeMonth: true,
numberOfMonths: 1
})
.on( “change”, function() {
from.datepicker( “option”, “maxDate”, getDate( this ) );
});function getDate( element ) {
var date;
try {
date = jQuery.datepicker.parseDate( dateFormat, element.value );
} catch( error ) {
date = null;
}
return date;
}
} );jQuery( function() {
var dateFormat = jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_in” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );
var dateFormat = jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat” );
jQuery( “#haaheim_date_out” ).datepicker( “option”, “dateFormat”, “dd.mm.yy” );//getter
var firstDay = jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_in’).datepicker(‘option’, ‘firstDay’, 0);
//getter
var firstDay = jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’);
//setter
jQuery(‘#haaheim_date_out’).datepicker(‘option’, ‘firstDay’, 0);And my input fields:
<div class=”con”>
<label for=”ankomstdato”>Ankomstdato</label><input id=”haaheim_date_in” type=”text” class=”dato” id=”ankomstdato” name=”arrive” />
</div><div class=”con”>
<label for=”avreisedato”>Avreisedato</label><input id=”haaheim_date_out” type=”text” class=”dato” id=”avreisedato” name=”depart” />
</div>- This reply was modified 5 years, 9 months ago by kjetilwaage.
Forum: Plugins
In reply to: [WP Datepicker] Autocomplete end date when start date is selectedThanks!
Do you have ab example and info how to do this?Hey!
Thanks for adding the if condition ??
Tried to fix the email field with your code, but did not make it work?I think this is possible with at simple javascript?
I will try to explain it again.Look here: https://www.vestbris.no/emabestilling/
I have a dropdown menu with a list of names and i have a email field that the user have to type in their email every time they post a order.
My users are lazy and do not bother to enter their e-mail whenever they have to send an order.
So when a user pick their name from the list i want the email field to automaticly put in their email adress.Thanks ??
Thanks!
Where do i add this code ?Thanks!
1. Ok, then I see and see what’s coming later2. Yes I thought maybe something like that would work.
How do i make the formula ?Thanks for replay!
Was not exactly what I was thinking about.
I will try to explain a little better.1. If a person leaves a field blank, eg “Address:” (see image)
I want this line hidden in the email.
Could maybe be done like this?[if field adresse]
Adresse: [field adresse]
[/field adresse]2. Yes almost ??
I want to change “From email address” field depending on what they select in the dropdown