<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[회원가입 오류메시지]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/63442</link>
		<description><![CDATA[<p><strong>코스모스팜회원가입사용중인데요</strong></p>

<p><strong>회원가입할때 submit 버튼누르면 required 오류 alert뜨게하고싶은데요</strong></p>

<p><strong>skin/default/script.js에</strong></p>

<pre>
<code>  if(jQuery('input[name=first_name]', form).exists() &amp;&amp; !jQuery('input[name=first_name]', form).val()){
        alert('성함을 필수로 입력해주세요.');
        jQuery('input[name=first_name]', form).focus();
        return false;
    }</code></pre>

<p>이렇게 넣었는데 왜 적용이 안될까요?</p>

<p>틀린게 있으면 알려주시면 감사하겠습니다</p>

<p>도움부탁드려요</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[wpmem_register_form_before 필터를 사용하여 회원가입 폼 이전에

스크립트를 출력할 수 있습니다.

 
...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/63566</link>
			<description><![CDATA[<p>wpmem_register_form_before 필터를 사용하여 회원가입 폼 이전에</p>

<p>스크립트를 출력할 수 있습니다.</p>

<p> </p>

<p>아래의 예제 코드를 활용하여 적용해보시겠어요?</p>

<pre>
<code>add_filter('wpmem_register_form_before', function($str){
	ob_start();
	?&gt;
	&lt;script&gt;
	jQuery(document).ready(function () {
		jQuery(".button_div input[name=submit]").on("click", function(e){
			e.preventDefault();
			
			if(jQuery("#user_email").val() == ''){
				alert("이메일을 입력하세요");
				return false;
			}
		});
	});
	&lt;/script&gt;
	&lt;?php
	$str .= ob_get_clean();
	return $str;
}, 10 ,1);</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Wed, 08 Mar 2023 03:25:06 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[필수항목인데 reqired 대신 alert로 경고창띄우고싶습니다.

어떻게해야될까요? ㅠ]]></title>
			<link>https://www.cosmosfarm.com/threads/document/63456</link>
			<description><![CDATA[<p>필수항목인데 reqired 대신 alert로 경고창띄우고싶습니다.</p>

<p>어떻게해야될까요? ㅠ</p>]]></description>
			<author>blackhyun</author>
			<pubDate>Thu, 02 Mar 2023 01:46:48 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

wp-members 필수체크 기능은 사용안하시는 걸까요?

alert창을 띄우게 하고 싶은신걸까...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/63453</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>wp-members 필수체크 기능은 사용안하시는 걸까요?</p>

<p>alert창을 띄우게 하고 싶은신걸까요?</p>

<p>만약 wp-members 필수체크 기능 사용하고 싶으시다면 </p>

<p>설정-&gt; wp-members -&gt; 필드 -&gt;원하는 필드 Required 항목에 체크해보시겠어요?</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 02 Mar 2023 01:39:53 +0000</pubDate>
			<category>워드프레스</category>
		</item>
			</channel>
</rss>