validate form js

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


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;


alert("Validation failed");

return false;






<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



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

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

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


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 отзывов(-а))

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 отзывов(-а))
(36 отзывов(-а))

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 отзывов(-а))

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 отзывов(-а))

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 отзывов(-а))

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

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