When I load a form via Ajax JQuery in this way:
$ ('# Quick_feed') .load ('API / SHS / loaders.php do = ask_question'); The form appears, but the problem is that when I click on submit button the form is not submitted. Here is the form & lt; Div class = "feed_header" & gt; & Lt; Div class = "feed_profilepic" & gt; & Lt; Img src = "profile_pix /" Profile_pic ;? & gt; " Width = "50" height = "50" square = "image3" range = "0" & gt; & Lt; / Div & gt; & Lt; Div class = "feed_postedby" & gt; & Lt ;? Php echo $ session-> Full_name; ? & Gt; & Lt; / Div & gt; & Lt; Div class = "feed_posted" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "feed_header" style = "padding-top: 3px;" & Gt; & Lt; Form action = "? Task = submit" method = "POST" & gt; & Lt; Input type = "text" style = "width: 97.7%; color: # 000;" Class = "box" name = "question" value = "" & gt; & Lt; / Div & gt; & Lt; Div class = "feed_header" style = "padding-top: 2px;" & Gt; & Lt; Textarea rows = "10" name = "question_am" id = "approx" "cols =" 30 "style =" resize: none; Width: 99% "> & Lt; a href = "#" onClick = "AADS (); Return false "gt; & lt; div class =" feed_buttons "style =" padding-left: 5px; Padding-top: 0px; "& gt; & lt; P & gt; span class =" feed_button "style =" background-color: # 999; Margin-top: 3px; "gt; cancel & lt; / span & gt; & lt; / p & gt; & lt; / div & gt; & lt; / a & gt; & lt; / div & Gt; Form submission is the page on which the form was loaded. Any suggestions?
Remove the device from that form that you have to terminate the & lt; form & gt; tag and the tag at the same level: & lt; form action = "? Task = submit "method =" POST "& gt; & lt; input type =" text "style =" width: 97.7%; Color: # 000; "class =" box "name =" question "value =" "& gt; div class =" feed_header "style =" padding-top: 2px; "& gt; textarea rows = "10" name = "question_am" id = "approximate" "cols =" 30 "style =" size change: none; width: 99% "& gt; & Lt; / Textarea & gt; & Lt; / Div & gt; & Lt; Div class = "feed_header" style = "padding-top: 2px;" & Gt; & Lt; / Div & gt; & Lt; Div class = "feed_header" style = "padding-top: 2px;" & Gt; & Lt; Div class = "feed_buttons" id = "ask" style = "padding-left: 5px;" & Gt; & Lt; P & gt; & Lt; Input type = "submit" value = "ask it" & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; A href = "#" onClick = "AADS (); Return Return" & gt; & Lt; Span class = "feed_buttons" style = "padding-left: 5px; padding-top: 0px;" & Gt; & Lt; Span class = "feed_button" style = "background-color: # 999; margin-top: 3px;" & Gt; Cancel & lt; / Span & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt; / Form & gt;
No comments:
Post a Comment