Завершен

validate form js

Hi I have test js code form validate - input button with onclick. My code:

<script>

require(["jquery"], function ($) {

$(document).ready(function () {

$('#save').click(function () { // The button type should be "button" and not submit

if ($('#pobocky_data_form').valid()) {

alert("Validation ok");

return true;

}else{

alert("Validation failed");

return false;

}

});

});

});

</script>

<button type="button" id="save" class="save_pobocky" onClick="function()">Uložit pobočku</button>

error in console: (index):1 Uncaught SyntaxError: Function statements require a function name

Who can help me? Thanks.

Навыки: JavaScript, jQuery / Prototype, PHP, HTML, CSS

Показать больше: pear error install failed, validate form onsubmit, validate form submit, onsubmit validate form asp, magento valid packages found pear error install failed, valid packages found pear error install failed, magento pear error install failed, extjs validate form save, validate form input java, validate form validate con mootools download free, validate form template javascript, validate registartion form js html, error: bundling failed index js is not a valid identifer name

О работодателе:
( 18 отзыв(-а, -ов) ) Těrlicko, Czech Republic

ID проекта: #29262525

Поручен:

Chhasnikhan

Hello I think I can help you to make your code work... just join me in inbox

$10 USD за 1 день
(1 отзыв)
1.5

8 фрилансеров(-а) готовы выполнить эту работу в среднем за $15

AleksandarDikic

Hi, I am a fullstack developer with 8+ years of experience and a Javascript expert. I read the description carefully and I am sure I can help you with validation very well. As a Javascript developer I can ensure follo Больше

$30 USD за 7 дней(-я)
(20 отзывов(-а))
5.8
kajalgupta0098

Dear Hiring Manager, Thanks for sharing your project requirement with us. I have 6+ year of experience in web development. It will be our great pleasure to work on your project. I have checked your requirement regardi Больше

$20 USD за 1 день
(68 отзывов(-а))
5.3
(36 отзывов(-а))
4.7
shamoon1997

Brother i am javaScript expert i can do this for you in less than 30 minutes IF YOU WANT QUALITY WORK IN LESS TIME AND LESS BUDGET THEN CONTINUE READING Hello my brother MMy name is Shamoon Shahid. I am software engin Больше

$10 USD за 1 день
(3 отзывов(-а))
1.7
Murliptdr

Hii, I'm a web developer. I can do this work right now. I can get this done in 5 - 10 mints. previously i have worked on similar projects as you can see in my portfolio. I'll provide you quality work according to your Больше

$10 USD за 1 день
(2 отзывов(-а))
1.3
muhammadrasidk

I hope you and your family are safe from the outburst of coronavirus I've been through your job description and found out that you are looking for an experienced full stack developer who can develop as per your requir Больше

$10 USD за 1 день
(0 отзывов(-а))
0.0
chetanpatel24

Hii, I can help you, plz message me in chat for info.i have done ASAP. Thanking you, chetan patel

$12 USD за 1 день
(0 отзывов(-а))
0.0