Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS iOS / iPhone/ iPad / Mobile Safari = Input Buttons (submit) Forced padding Re: iOS / iPhone/ iPad / Mobile Safari = Input Buttons (submit) Forced padding

#72683
rickylamerz
Member

I’ve been messing with this now for a bit. My suggestion: Make it a Div instead of a button.

Submit

and style it with CSS and make it function with jQuery… maybe even give it something like:

Submit

Submit

jQuery / Javascript


$('div.clickButton').click(function(){
rel = $(this).attr('rel');
if(rel == 'submit'){
$('form').submit();
}
if(rel != 'submit'){
window.location =rel;
}

});

You could even do this in CSS to make it look like a link:

div.clickButton {cursor:pointer;}