This topic has 13 replies, 3 voices, and was last updated 10 years, 4 months ago by hostingames.
Viewing 14 posts - 1 through 14 (of 14 total)
Hello,
Mandating that if a field is checked.
Possible to add a Terms and Conditions in “addnew.php”
Before valid check and read the Terms?
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox"> By continuing, you agree to the <a href="#"><span class="skin-color">Terms and Conditions</span></a>.
</label>
</div>
</div>
Then how to add a color on each
button “iva form .select wrapper”
can add color
upload button
<div class="item">
<div class="info">
<span class="label">Photo</span>
<p class="description">Téléchargez la photo du client. Assurez-vous que la taille de la photo ne dépasse pas 200KB.</p>
</div>
<div class="option">
<input type="file" name="photo" value="upload">
</div>
</div>
Possible to replace this code?
<div class="option">
<div class="select_wrapper select-s">
<select name="day" class="select">
<option value="" selected="">Jour</option>
<?php
for ($i=1; $i <= 31; $i++) {
echo '<option value="'.$i.'">'. $i .'</option>';
}
?>
</select>
</div>
<div class="select_wrapper select-m">
<select name="month" class="select">
<option value="" selected="">Mois</option>
<option value="01">Jan</option>
<option value="02">Feb</option>
<option value="03">Mar</option>
<option value="04">Apr</option>
<option value="05">May</option>
<option value="06">Jun</option>
<option value="07">Jul</option>
<option value="08">Aug</option>
<option value="09">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>
</div>
<input type="hidden" class="ratingtype" value="<?php echo $ratingsformat; ?>" />
<div class="select_wrapper select-m">
<select name="year" class="select">
<option value="" selected="">An</option>
<?php
date_default_timezone_set('UTC');
$year = date('Y');
for ($i= $year; $i >= 1990; $i--) {
echo '<option value="'.$i.'">'. $i .'</option>';
}
?>
</select>
</div>
</div>
by
<div class="datepicker-wrap">
<input type="text" name="date_from" class="input-text full-width" placeholder="mm/dd/yy" />
</div>
thank you
Hello,
you have jQuery?
thank you
hi,
can we have the name of jQuery?
to integrate addnew.php file
Then how to add a color on Each
button “iva form .select wrapper”
can we add color
on the download button
thank you
If you know coding HTML/CSS you can inspect elements and change the colors for buttons or for the whole script or any elements you wish. Regarding the query for the mandating the field here is the query.
else if (jQuery("#terms_and_con").prop("checked")==false) {
alert("Check this if you agree to the terms and conditions.");
frm.terms_and_con.focus();
return false;
}
add this in the addnew.php after the captcha validation on line no around 131.
You placed the code in a wrong place if you know coding then do it or else hire someone to get it done. Its a custom work.
You asked about query I gave you a query despite of its a custom work. If you want to customize either pay extra $$$$ or hire someone from studio.envato.com
Hello,
sorry, I have seen the error name.
add the code above return true;
needs to change “#terms_and_con”?
thank you
HI,
learns sorry, I’m a beginner
id in jQuery to validate it.
correct: checkbox
else if (jQuery("#checkbox").prop("checked")==false) {
alert("Cochez cette case si vous acceptez les termes et conditions.");
frm.checkbox.focus();<code></code>
ID in class:
correct: checkbox
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox"> By continuing, you agree to the <a href="#"><span class="skin-color">Terms and Conditions</span></a>.
</label>
</div>
</div>
`
thank you
Hello,
A question
correct?
We change element
terms_and_con by checkbox
correct?
<script type="text/javascript">
function validatefrm()
{
else if( frm.captcha.value === "" ) {
alert("Enter captcha");
frm.captcha.focus();
return false;
}
else if (jQuery("#checkbox").prop("checked")==false) {
alert("Cochez cette case si vous acceptez les termes et conditions.");
frm.checkbox.focus();
return false;
}
return true;
}
correct?
<div class="item">
<div class="checkbox">
<label>
<input type="checkbox"> En continuant, vous acceptez les <a href="#"><span class="skin-color">Conditions générales</span></a>.
</label>
</div>
</div>
<br/>
<input type="submit" class="button green-button" name="Add" value="soumettre">
</form>
Thank you
hi,we did a test
the checkbox,
works
Viewing 14 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic.