<%= form_tag( { :controller => 'businesses', :action => 'create' }, {
:id => 'myform',:class => 'form-inline offset3', :method =>
'post'}) do %>
<%= text_field_tag('mnum' ,nil, :class => "input-xlarge", :style =>
"text- align:center;height:28px;",:placeholder => "Enter Mobile
Number") %>
<%= submit_tag "Get", :id => "da",:class => "btn btn-large
btn-primary" %>
<%end%>
JQUERY
$(document).ready(function () {
$("#da ").click(function() {
//$(".original3").fadeOut(300, function() {
//$(".original3").css(“display”, “block”);
$(".checked3").css(“display”, “block”);
$(".checked3").show();
//});
});
});
Basically another Div will be hide via css. when click this Get button
that
div should show, But here is the problem when i click the GET button the
the other div will show and fadeout soon. But when i change the GET
button
type submit to button that will work properly…? How to avoid this
problem…?
vishnu
Thank you
amvis
March 20, 2012, 9:05am
#2
change event from click() to onSubmit
$(’#da ’).bind(‘submit’, function() …
tom
On Mar 20, 2012, at 5:45 , amvis wrote:
//$(".original3").fadeOut(300, function() {
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
–
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
amvis
March 20, 2012, 9:34am
#3
Thanks tom, Here the submission happens, but the other will’not show…
I
just give like this
<%= submit_tag “Get”, :id => “da”, :class => “btn btn-large
btn-primary”
%>*
Thank you
vishnu
On Tuesday, 20 March 2012 13:33:17 UTC+5:30, tom meinlschmidt wrote:
<%= form_tag( { :controller => ‘businesses’, :action => ‘create’ }, {
Basically another Div will be hide via css. when click this Get button
http://groups.google.com/group/rubyonrails-talk?hl=en .
–
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
===============================================================================
amvis
March 20, 2012, 9:43am
#4
at least, use $().show() or $().hide() instead of setting CSS values
or $().toggle(visible?) where visible is true/false
tom
On Mar 20, 2012, at 9:25 , amvis wrote:
});
On Tuesday, 20 March 2012 13:33:17 UTC+5:30, tom meinlschmidt wrote:
<%= submit_tag “Get”, :id => “da”,:class => “btn btn-large btn-primary”
%>
//});
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
<%= form_tag( { :controller => ‘businesses’, :action => ‘create’ }, { :id =>
‘myform’,:class => ‘form-inline offset3’, :method => ‘post’}) do %>
$(".checked3").css("display", "block");
–
–
You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/4YEvezL1lXYJ .
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
–
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache