{"id":7195,"date":"2014-05-27T09:08:05","date_gmt":"2014-05-27T09:08:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/unexpected-identifier-after-performing-an-event-in-query-collection-of-common-programming-errors\/"},"modified":"2014-05-27T09:08:05","modified_gmt":"2014-05-27T09:08:05","slug":"unexpected-identifier-after-performing-an-event-in-query-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/unexpected-identifier-after-performing-an-event-in-query-collection-of-common-programming-errors\/","title":{"rendered":"Unexpected identifier after performing an event in query-Collection of common programming errors"},"content":{"rendered":"<p>Hello guys I have a problem in getting textboxes inputs in my jquery using ID. Ok here&#8217;s my code.<\/p>\n<pre><code>\n\n            var globalBase_Url = \"{$base_url}\"; \/\/OK NO ERROR   \n            var name = \"\";\n            var desc = \"\";\n\n            {literal}\n\n                $(document).ready(function(){\n\n                    $('#add_cat').on('click',function(){\n                        $('#add_category').show('slide');\n                    });\n\n                    $('#submit').on('click',function(){\n\n                        jquery.ajax({ \n\n                            var name = $('#category_name').val(); \/\/this is the error\n                            var desc = $('#description').val(); \/\/ this is the error\n\n                        });\n\n                    });\n\n                });\n\n            {\/literal}\n\n\n        \n\n....\n\n\n            <br \/>\n            <\/code><\/pre>\n<table border=\"1\">\n<tr>\n<td>CATEGORY NAME:<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>DESCRIPTION:<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<\/table>\n<p>As you have seen above. My error is the variables. I don&#8217;t know why. Please help me guys thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello guys I have a problem in getting textboxes inputs in my jquery using ID. Ok here&#8217;s my code. var globalBase_Url = &#8220;{$base_url}&#8221;; \/\/OK NO ERROR var name = &#8220;&#8221;; var desc = &#8220;&#8221;; {literal} $(document).ready(function(){ $(&#8216;#add_cat&#8217;).on(&#8216;click&#8217;,function(){ $(&#8216;#add_category&#8217;).show(&#8216;slide&#8217;); }); $(&#8216;#submit&#8217;).on(&#8216;click&#8217;,function(){ jquery.ajax({ var name = $(&#8216;#category_name&#8217;).val(); \/\/this is the error var desc = $(&#8216;#description&#8217;).val(); \/\/ this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7195","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7195"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7195\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}